@@ -25,6 +25,7 @@ import (
2525 "github.com/jaegertracing/jaeger/thrift-gen/jaeger"
2626
2727 "go.opentelemetry.io/collector/consumer/pdata"
28+ idutils "go.opentelemetry.io/collector/internal/idutils"
2829 "go.opentelemetry.io/collector/internal/occonventions"
2930 "go.opentelemetry.io/collector/translator/conventions"
3031 tracetranslator "go.opentelemetry.io/collector/translator/trace"
@@ -164,15 +165,15 @@ type instrumentationLibrary struct {
164165
165166func jSpanToInternal (span * model.Span ) (pdata.Span , instrumentationLibrary ) {
166167 dest := pdata .NewSpan ()
167- dest .SetTraceID (tracetranslator .UInt64ToTraceID (span .TraceID .High , span .TraceID .Low ))
168- dest .SetSpanID (tracetranslator .UInt64ToSpanID (uint64 (span .SpanID )))
168+ dest .SetTraceID (idutils .UInt64ToTraceID (span .TraceID .High , span .TraceID .Low ))
169+ dest .SetSpanID (idutils .UInt64ToSpanID (uint64 (span .SpanID )))
169170 dest .SetName (span .OperationName )
170171 dest .SetStartTimestamp (pdata .TimestampFromTime (span .StartTime ))
171172 dest .SetEndTimestamp (pdata .TimestampFromTime (span .StartTime .Add (span .Duration )))
172173
173174 parentSpanID := span .ParentSpanID ()
174175 if parentSpanID != model .SpanID (0 ) {
175- dest .SetParentSpanID (tracetranslator .UInt64ToSpanID (uint64 (parentSpanID )))
176+ dest .SetParentSpanID (idutils .UInt64ToSpanID (uint64 (parentSpanID )))
176177 }
177178
178179 attrs := dest .Attributes ()
@@ -357,8 +358,8 @@ func jReferencesToSpanLinks(refs []model.SpanRef, excludeParentID model.SpanID,
357358 continue
358359 }
359360
360- link .SetTraceID (tracetranslator .UInt64ToTraceID (ref .TraceID .High , ref .TraceID .Low ))
361- link .SetSpanID (tracetranslator .UInt64ToSpanID (uint64 (ref .SpanID )))
361+ link .SetTraceID (idutils .UInt64ToTraceID (ref .TraceID .High , ref .TraceID .Low ))
362+ link .SetSpanID (idutils .UInt64ToSpanID (uint64 (ref .SpanID )))
362363 i ++
363364 }
364365
0 commit comments