Skip to content

Commit

Permalink
make use of the SpanIDFieldName constant in apmzerolog
Browse files Browse the repository at this point in the history
  • Loading branch information
dassump committed Mar 8, 2024
1 parent 538be9b commit 0ba8944
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module/apmzerolog/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,6 @@ func (h traceContextHook) Run(e *zerolog.Event, level zerolog.Level, message str
e.Hex(TransactionIDFieldName, traceContext.Span[:])
if span := apm.SpanFromContext(h.ctx); span != nil {
spanTraceContext := span.TraceContext()
e.Hex("span.id", spanTraceContext.Span[:])
e.Hex(SpanIDFieldName, spanTraceContext.Span[:])
}
}

0 comments on commit 0ba8944

Please sign in to comment.