Skip to content

Commit ffbd232

Browse files
authored
Update IncludedData docs in README [skip ci]
Fixes #171
1 parent f737af1 commit ffbd232

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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
```

0 commit comments

Comments
 (0)