From cbb31d6598b772058942d91372157f8a8af6e32a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Dias=20de=20Assump=C3=A7=C3=A3o?= Date: Tue, 12 Mar 2024 11:33:10 -0300 Subject: [PATCH] make use of the SpanIDFieldName constant in apmzerolog (#1578) Co-authored-by: Damien Mathieu <42@dmathieu.com> --- module/apmzerolog/context.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/apmzerolog/context.go b/module/apmzerolog/context.go index 3ada2180d..6f4dd4ab1 100644 --- a/module/apmzerolog/context.go +++ b/module/apmzerolog/context.go @@ -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[:]) } }