diff --git a/exporter/collector/spandata.go b/exporter/collector/spandata.go index 4e3d531c2..78ff5e092 100644 --- a/exporter/collector/spandata.go +++ b/exporter/collector/spandata.go @@ -68,19 +68,19 @@ func pdataSpanToOTSpanData( status := span.Status() return spanSnapshot{ - spanContext: apitrace.NewSpanContext(sc), - parent: apitrace.NewSpanContext(parentSc), - spanKind: pdataSpanKindToOTSpanKind(span.Kind()), - startTime: startTime, - endTime: endTime, - name: span.Name(), - attributes: pdataAttributesToOTAttributes(span.Attributes(), resource), - links: pdataLinksToOTLinks(span.Links()), - events: pdataEventsToOTMessageEvents(span.Events()), - droppedAttributes: int(span.DroppedAttributesCount()), - droppedMessageEvents: int(span.DroppedEventsCount()), - droppedLinks: int(span.DroppedLinksCount()), - resource: r, + spanContext: apitrace.NewSpanContext(sc), + parent: apitrace.NewSpanContext(parentSc), + spanKind: pdataSpanKindToOTSpanKind(span.Kind()), + startTime: startTime, + endTime: endTime, + name: span.Name(), + attributes: pdataAttributesToOTAttributes(span.Attributes(), resource), + links: pdataLinksToOTLinks(span.Links()), + events: pdataEventsToOTMessageEvents(span.Events()), + droppedAttributes: int(span.DroppedAttributesCount()), + droppedMessageEvents: int(span.DroppedEventsCount()), + droppedLinks: int(span.DroppedLinksCount()), + resource: r, instrumentationLibrary: instrumentationScopeLabels(is), status: sdktrace.Status{ Code: pdataStatusCodeToOTCode(status.Code()),