Open RehanSaeed opened 9 months ago
Can you provide guidance on how to migrate from Serilog.Enrichers.Span
to the new Serilog-native equivalent?
It's not clear from reading the attached PR comments what steps are required, if any!
The Serilog libraries are still a couple of months away from stabilizing, and there aren't any docs out there just yet. It's probably best to stick with this package in the meantime unless you have a strong reason to make the switch (happy to help if so!).
@rmorrin Serilog version 3.1 (unreleased at the time of writing) is most likely to contain the new span API's. Switching would be as simple as removing Serilog.Enrichers.Span and upgrading to Serilog to 3.1 and any other enrichers/sinks.
I will make this clearer in the ReadMe.
Serilog.Extensions.Logging (which implements ILoggingFactory) indeed does provide SpanId and TraceId on LogEvent
, however, nothing like ParentSpanId and SpanStart or similar is being enriched or added. Therefore, this library still has its use.
@Sebazzz are you currently using this library with a back-end that can use span start/parent span id to display the events hierarchically? (Exploring this space currently... :))
This repository is now deprecated. Serilog now has the native ability to log span related data. See https://github.com/serilog/serilog/pull/1955.