Skip to content

Commit

Permalink
empty instance value
Browse files Browse the repository at this point in the history
  • Loading branch information
saikalyan.bhagavathula committed May 31, 2024
1 parent b3bdd1f commit ce0c51a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/convert/traces.go
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,9 @@ func TranslateTraceRequest(request *coltracepb.ExportTraceServiceRequest, ri Req
traceAttributes["spanEventAttributes"]["traceId"] = traceID
traceAttributes["spanEventAttributes"]["spanId"] = spanID
traceAttributes["spanEventAttributes"]["trace_operation"] = span.Name
if traceAttributes["spanAttributes"]["instance"] == nil {
traceAttributes["spanAttributes"]["instance"] = traceAttributes["resourceAttributes"]["instance"]
}
traceAttributes["spanEventAttributes"]["trace_instance"] = traceAttributes["spanAttributes"]["instance"]
traceAttributes["spanEventAttributes"]["trace_service"] = traceAttributes["resourceAttributes"]["service_name"]
spanEvents = append(spanEvents, SpanEvent{
Expand Down

0 comments on commit ce0c51a

Please sign in to comment.