This commit is contained in:
Marek Goc 2024-11-14 17:19:55 +01:00
parent 03256699b2
commit deb7986cad

View File

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