Support the work with Serilog's 3.1.0 properties TraceId & SpanId #233
Labels
breaking change
Implementation of that functionality will be a breaking change
enhancement
New feature or request
Milestone
The Serilog's release v3.1.0 brings us the new breaking change:
In the current implementation we have a minimal version of
Serilog
-2.12.0
, in which those properties were not present.So in the next place the are dropped out during the creation of the new
LogEvent
serilog-sinks-grafana-loki/src/Serilog.Sinks.Grafana.Loki/Models/LokiLogEvent.cs
Lines 49 to 59 in 1bbf837
After the investigation, the decision was taken. As v9 (WIP) will reference
v3.1.0
as a minimal, we will work with those properties from the beginning. As v8 would reach the end of the life after the v9 release, that version would not work with those properties.Originally found in:
Discussed in #232
Originally posted by rolfwessels November 27, 2023
First, thank you to the creators for this package. It's been handy.
Unfortunately, I would like to add TraceId to the labels but I do not seem to be able to do this
Calling the following:
The output to the console is as expected.
But the loki output is
Can someone please point me in the right direction?
Thanks
The text was updated successfully, but these errors were encountered: