Serilog.Sinks.OpenTelemetry.IncludedData
Items that the sink can include in emitted log records.
Include an MD5 hash of the log event's message template as a hex-encoded string in message_template.hash.md5.
Include pre-rendered values for any message template placeholders that use custom format specifiers, in message_template.renderings.
Include the log event's message template in message_template.text. For example, the string Hello {Name}!.
None = 0
No additional data will be included.
SourceContextAttribute = 128
Preserve the value of the SourceContext property, in addition to using it as the OTLP InstrumentationScope name. If
not specified, the SourceContext property will be omitted from the individual log record attributes.
SpanIdField = 8
Include SpanId from Current as a top-level field. Supported on .NET 6.0 and greater only.
Include default values for resource attributes marked as "required" in the OpenTelemetry spec. This currently
means service.name if not supplied, along with the telemetry.sdk.* group of attributes.
TemplateBody = 32
Include the log event's message template in the OTLP body instead of the rendered messsage. For
example, the string Hello {Name}!.
TraceIdField = 4
Include TraceId from Current as a top-level field. Supported on .NET 6.0 and greater only.