cleanup unused and add short message to GELF
This commit is contained in:
@ -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()
|
||||
|
Reference in New Issue
Block a user