Skip to content

Commit

Permalink
make lint
Browse files Browse the repository at this point in the history
  • Loading branch information
damemi committed Mar 14, 2023
1 parent 8179d7b commit b6f7905
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions exporter/collector/spandata.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()),
Expand Down

0 comments on commit b6f7905

Please sign in to comment.