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) }