Skip to content

Commit

Permalink
Fix TraceFlags value
Browse files Browse the repository at this point in the history
  • Loading branch information
SodaDev committed Nov 14, 2023
1 parent d711db2 commit a51a431
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion log/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ func SetupTraceIds(ctx context.Context) {
With(TraceId, spanContext.TraceID().String()).
With(CorrelationId, spanContext.TraceID().String()).
With(SpanId, spanContext.SpanID().String()).
With(TraceFlags, spanContext.TraceFlags().String())
With(TraceFlags, spanContext.TraceFlags().IsSampled())
} else if traceHeader := getTraceHeaderFromContext(ctx); traceHeader != nil {
log = log.
With(TraceId, traceHeader.TraceID).
Expand Down

0 comments on commit a51a431

Please sign in to comment.