cleanup unused and add short message to GELF

This commit is contained in:
2024-05-17 15:46:25 +02:00
parent d4dc790298
commit 4f4a7e09c5
4 changed files with 4 additions and 75 deletions

View File

@ -82,6 +82,10 @@ func (e *Exporter) ExportSpans(ctx context.Context, spans []trace.ReadOnlySpan)
gelf.LongMessage = attrKV.Value.AsString()
continue
}
if attrKV.Key == attr.LogMessageShortKey {
gelf.ShortMessage = attrKV.Value.AsString()
continue
}
if attrKV.Key == attr.SeverityLevelKey {
gelf.Level = level.FromString(attrKV.Value.AsString()).IntoSyslogLevel()