We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4935bdd commit 195eb7aCopy full SHA for 195eb7a
server/traces/otel_converter.go
@@ -30,6 +30,11 @@ func FromOtelResourceSpans(resourceSpans []*v1.ResourceSpans) Trace {
30
// Add attributes from the resource
31
span.Attributes = append(span.Attributes, scopeSpans.Scope.Attributes...)
32
}
33
+
34
+ // Add attributes from the resource
35
+ if resource.Resource != nil {
36
+ span.Attributes = append(span.Attributes, resource.Resource.Attributes...)
37
+ }
38
39
40
flattenSpans = append(flattenSpans, scopeSpans.Spans...)
0 commit comments