File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -142,9 +142,9 @@ Serilog `LogEvent` | OpenTelemetry `LogRecord` |
142142` MessageTemplate ` | ` Attributes[ "message_template.text"] ` | Requires ` IncludedData. MessageTemplateText ` (enabled by default) |
143143` MessageTemplate ` (MD5) | ` Attributes[ "message_template.hash.md5"] ` | Requires ` IncludedData. MessageTemplateMD5 HashAttribute ` |
144144` Properties ` | ` Attributes ` | Each property is mapped to an attribute keeping the name; the value's structure is maintained |
145- ` SpanId ` (` Activity.Current ` ) | ` SpanId ` | Requires ` IncludedData.SpanId ` (enabled by default) |
145+ ` SpanId ` (` Activity.Current ` ) | ` SpanId ` | Requires ` IncludedData.SpanIdField ` (enabled by default) |
146146` Timestamp ` | ` TimeUnixNano ` | .NET provides 100-nanosecond precision |
147- ` TraceId ` (` Activity.Current ` ) | ` TraceId ` | Requires ` IncludedData.TraceId ` (enabled by default) |
147+ ` TraceId ` (` Activity.Current ` ) | ` TraceId ` | Requires ` IncludedData.TraceIdField ` (enabled by default) |
148148
149149### Configuring included data
150150
@@ -156,8 +156,8 @@ Log.Logger = new LoggerConfiguration()
156156 .WriteTo .OpenTelemetry (options =>
157157 {
158158 options .Endpoint = " http://127.0.0.1:4317" ;
159- options .IncludedData : IncludedData .MessageTemplate |
160- IncludedData .TraceId | IncludedData . SpanId ;
159+ options .IncludedData : IncludedData .MessageTemplateTextAttribute |
160+ IncludedData .SpecRequiredResourceAttributes ;
161161 })
162162 .CreateLogger ();
163163```
You can’t perform that action at this time.
0 commit comments