serilog-mssql / serilog-sinks-mssqlserver

A Serilog sink that writes events to Microsoft SQL Server and Azure SQL
Apache License 2.0
276 stars 147 forks source link

Added OpenTelemetry TraceId and SpanId #497

Closed ckadluba closed 9 months ago

ckadluba commented 9 months ago

Added the new standard columns TraceId and SpanId for OpenTelemetry tracing. Those columns are by default not enabled and must be added to the ColumnOptions.Store property to use them (for backwards compatibility). If the columns are activated, the corresponding log event properties from Serilog will be written to those columns (https://github.com/serilog/serilog/pull/1955).

Fixes #488