From 0ba89444bda70b9c9e4585b6503862938645b574 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Dias=20de=20Assump=C3=A7=C3=A3o?= Date: Fri, 8 Mar 2024 07:16:23 -0300 Subject: [PATCH] make use of the SpanIDFieldName constant in apmzerolog --- 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[:]) } }