serilog / serilog-extensions-logging

Serilog provider for Microsoft.Extensions.Logging
Apache License 2.0
307 stars 97 forks source link

Capture trace and span ids for Serilog 3.1 #227

Closed nblumhardt closed 9 months ago

nblumhardt commented 9 months ago

See also serilog/serilog#1923, serilog/serilog-aspnetcore#207.

This will be best released in the v8.0 package version.

nblumhardt commented 9 months ago

Keeping this moving as part of the coordinated set of changes required to get feedback on trace/span support in Serilog 3.1.

Sebazzz commented 7 months ago

PSA for those who are just like me already trying to play with the new tracing in Serilog, this has indeed not been released yet. This means until this gets released and you rely on the Microsoft logging abstraction, you won't get any traces yet.

nblumhardt commented 7 months ago

until this gets released and you rely on the Microsoft logging abstraction, you won't get any traces yet.

Serilog 3.1 only supports log events - not traces. This feature adds trace and span ids to log events for correlation purposes.