diff --git a/server/traces/otel_converter.go b/server/traces/otel_converter.go index b10d60f4ca..115838c3af 100644 --- a/server/traces/otel_converter.go +++ b/server/traces/otel_converter.go @@ -30,6 +30,11 @@ func FromOtelResourceSpans(resourceSpans []*v1.ResourceSpans) Trace { // Add attributes from the resource span.Attributes = append(span.Attributes, scopeSpans.Scope.Attributes...) } + + // Add attributes from the resource + if resource.Resource != nil { + span.Attributes = append(span.Attributes, resource.Resource.Attributes...) + } } flattenSpans = append(flattenSpans, scopeSpans.Spans...)