Skip to content

Commit

Permalink
instance in span events
Browse files Browse the repository at this point in the history
  • Loading branch information
saikalyan.bhagavathula committed Feb 26, 2024
1 parent e4c7f45 commit 1fc0a0d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pkg/convert/traces.go
Original file line number Diff line number Diff line change
Expand Up @@ -245,10 +245,7 @@ func TranslateTraceRequest(request *coltracepb.ExportTraceServiceRequest, ri Req
traceAttributes["spanEventAttributes"]["traceId"] = traceID
traceAttributes["spanEventAttributes"]["spanId"] = spanID
traceAttributes["spanEventAttributes"]["trace_operation"] = span.Name
traceAttributes["spanEventAttributes"]["trace_instance"] = traceAttributes["spanAttributes"]["instance"]
if traceAttributes["spanEventAttributes"]["trace_instance"] == "" {
traceAttributes["spanEventAttributes"]["trace_instance"] = _unknown
}
traceAttributes["spanEventAttributes"]["trace_instance"] = traceAttributes["resourceAttributes"]["instance"]
traceAttributes["spanEventAttributes"]["trace_service"] = traceAttributes["resourceAttributes"]["service_name"]
spanEvents = append(spanEvents, SpanEvent{
Name: sevent.GetName(),
Expand Down

0 comments on commit 1fc0a0d

Please sign in to comment.