From deb7986cad908ba3519a2442eef5da54355dbac1 Mon Sep 17 00:00:00 2001 From: Marek Goc Date: Thu, 14 Nov 2024 17:19:55 +0100 Subject: [PATCH] check --- pkg/exporters/gelf_exporter/trace.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/exporters/gelf_exporter/trace.go b/pkg/exporters/gelf_exporter/trace.go index 77a59b3..8811b66 100644 --- a/pkg/exporters/gelf_exporter/trace.go +++ b/pkg/exporters/gelf_exporter/trace.go @@ -2,6 +2,7 @@ package gelfexporter import ( "context" + "fmt" "sync" "git.ma-al.com/maal-libraries/observer/pkg/attr" @@ -103,6 +104,8 @@ func (e *Exporter) ExportSpans(ctx context.Context, spans []trace.ReadOnlySpan) } gelf.ExtraFields = attributes + gelf.ExtraFields["tag"] = e.tag + fmt.Printf("gelf.ExtraFields: %v\n", gelf.ExtraFields) Log(e.gelfWriter, gelf) }