You've already forked opentelemetry-go
mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2025-08-10 22:31:50 +02:00
Unslice to simplify (#324)
This commit is contained in:
committed by
Joshua MacDonald
parent
90ba74e15a
commit
eb3b31e12d
@@ -126,7 +126,7 @@ func (hp HTTPTraceContextPropagator) extractSpanContext(
|
||||
if len(sections[2]) != 16 {
|
||||
return core.EmptySpanContext()
|
||||
}
|
||||
sc.SpanID, err = core.SpanIDFromHex(sections[2][:])
|
||||
sc.SpanID, err = core.SpanIDFromHex(sections[2])
|
||||
if err != nil {
|
||||
return core.EmptySpanContext()
|
||||
}
|
||||
|
Reference in New Issue
Block a user