You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In addition to any special properties described below, each Standard Column also has the usual column properties like `ColumnName` as described in the topic [SqlColumn Objects](#sqlcolumn-objects).
@@ -454,7 +458,7 @@ In case `DataLength` is set to a specific value different from -1, any message l
454
458
455
459
Thiscolumnstoresthelogeventmessagewiththepropertyplaceholders. Itdefaultsto `nvarchar(max)`. The `DataType` propertycanonlybesettocharacter-storagetypes.
456
460
457
-
If `DataLength` issettoavaluedifferentto -1 longertextwillbetruncated. See [Messagecolumn](#message) fordetails.
461
+
If `DataLength` issettoavaluedifferentto -1 longertextwillbetruncated. See [Messagecolumn](#message) fordetails.
458
462
459
463
### Level
460
464
@@ -506,10 +510,16 @@ If `OmitElementIfEmpty` is set then if a property is empty, it will not be seria
506
510
507
511
This column stores log event property values as JSON. Typically you will use either this column or the XML-based `Properties` column, but not both. This column's `DataType` must always be `nvarchar`.
508
512
509
-
The `ExcludeAddtionalProperties` and `ExcludeStandardColumns` properties are described in the [Custom Property Columns](#custom-property-columns) topic.
513
+
By default this column is not used unless it is added to the `ColumnOptions.Store` property as documented [above](#standard-columns).
510
514
511
515
The content of this column is rendered as JSON by default or with a custom ITextFormatter passed by the caller as parameter `logEventFormatter`. Details can be found in [Sink Configuration](#sink-configuration).
512
516
517
+
### TraceId and SpanId
518
+
519
+
These two columns store the OpenTelemetry `TraceId` and `SpanId` log event properties which are documented [here](https://github.com/serilog/serilog/issues/1923). The `DataType` of these columns must be `nvarchar` or `varchar`.
520
+
521
+
By default these columns are not used unless they are added to the `ColumnOptions.Store` property as documented [above](#standard-columns).
522
+
513
523
## Custom Property Columns
514
524
515
525
By default, any log event properties you include in your log statements will be saved to the XML `Properties` column or the JSON `LogEvent` column. But they can also be stored in their own individual columns via the `AdditionalColumns` collection. This adds overhead to write operations but is very useful for frequently-queried properties. Only `ColumnName` is required; the default configuration is `varchar(max)`.
@@ -604,7 +614,7 @@ As the name suggests, `columnOptionSection` is an entire configuration section i
0 commit comments