Skip to content

Commit

Permalink
make use of the SpanIDFieldName constant in apmzerolog (#1578)
Browse files Browse the repository at this point in the history
Co-authored-by: Damien Mathieu <[email protected]>
  • Loading branch information
dassump and dmathieu authored Mar 12, 2024
1 parent a76527a commit cbb31d6
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 cbb31d6

Please sign in to comment.