plenty of changes to make the package more ergonomic

Including: bug fixes, api changes, new packages, and more!
This commit is contained in:
2024-05-17 15:31:35 +02:00
parent e835318689
commit 3c51f5575b
10 changed files with 378 additions and 178 deletions

View File

@ -78,7 +78,7 @@ func (e *Exporter) ExportSpans(ctx context.Context, spans []trace.ReadOnlySpan)
ExtraFields: attributes,
}
for _, attrKV := range event.Attributes {
if attrKV.Key == "long_message" {
if attrKV.Key == attr.LogMessageLongKey {
gelf.LongMessage = attrKV.Value.AsString()
continue
}