Skip to content

Commit a6c9026

Browse files
authored
Merge pull request #191 from NRG-Drink/docs/readme-typo
docs: correct typo and spaces
2 parents cf59d53 + b9e65e9 commit a6c9026

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
@@ -135,12 +135,12 @@ Serilog `LogEvent` | OpenTelemetry `LogRecord` |
135135
---------------------------------|--------------------------------------------|-----------------------------------------------------------------------------------------------|
136136
`Exception.GetType().ToString()` | `Attributes["exception.type"]` | |
137137
`Exception.Message` | `Attributes["exception.message"]` | Ignored if empty |
138-
`Exception.StackTrace` | `Attributes[ "exception.stacktrace"]` | Value of `ex.ToString()` |
138+
`Exception.StackTrace` | `Attributes["exception.stacktrace"]` | Value of `ex.ToString()` |
139139
`Level` | `SeverityNumber` | Serilog levels are mapped to corresponding OpenTelemetry severities |
140140
`Level.ToString()` | `SeverityText` | |
141141
`Message` | `Body` | Culture-specific formatting can be provided via sink configuration |
142-
`MessageTemplate` | `Attributes[ "message_template.text"]` | Requires `IncludedData. MessageTemplateText` (enabled by default) |
143-
`MessageTemplate` (MD5) | `Attributes[ "message_template.hash.md5"]` | Requires `IncludedData. MessageTemplateMD5 HashAttribute` |
142+
`MessageTemplate` | `Attributes["message_template.text"]` | Requires `IncludedData. MessageTemplateText` (enabled by default) |
143+
`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 |
145145
`SpanId` (`Activity.Current`) | `SpanId` | Requires `IncludedData.SpanIdField` (enabled by default) |
146146
`Timestamp` | `TimeUnixNano` | .NET provides 100-nanosecond precision |
@@ -156,7 +156,7 @@ Log.Logger = new LoggerConfiguration()
156156
.WriteTo.OpenTelemetry(options =>
157157
{
158158
options.Endpoint = "http://127.0.0.1:4317";
159-
options.IncludedData: IncludedData.MessageTemplateTextAttribute |
159+
options.IncludedData = IncludedData.MessageTemplateTextAttribute |
160160
IncludedData.SpecRequiredResourceAttributes;
161161
})
162162
.CreateLogger();

0 commit comments

Comments
 (0)