Open KricYi opened 1 year ago
@Override public void writeTo(JsonGenerator generator, ExtLogRecord event) throws IOException { generator.writeStringField("traceId", Span.current().getSpanContext().getTraceId()); // Will be added to every log, as a field on the json. }
I can't read from issue description, what the issue is handling about.
The console can print my custom traceId, but there is no traceId field in the log file。
I want to extract mdc.traceId to the root traceId
@Override public void writeTo(JsonGenerator generator, ExtLogRecord event) throws IOException { generator.writeStringField("traceId", Span.current().getSpanContext().getTraceId()); // Will be added to every log, as a field on the json. }