Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions pkg/translator/jaeger/jaegerproto_to_traces.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import (
"github.com/jaegertracing/jaeger-idl/model/v1"
"go.opentelemetry.io/collector/pdata/pcommon"
"go.opentelemetry.io/collector/pdata/ptrace"
conventionsv125 "go.opentelemetry.io/otel/semconv/v1.25.0"
conventions "go.opentelemetry.io/otel/semconv/v1.40.0"

"github.com/open-telemetry/opentelemetry-collector-contrib/internal/coreinternal/occonventions"
Expand Down Expand Up @@ -288,7 +287,7 @@ func setInternalSpanStatus(attrs pcommon.Map, span ptrace.Span) {
// otel.status_message tag will have already been removed if
// statusExists is true.
attrs.Remove(string(conventions.OTelStatusCodeKey))
} else if httpCodeAttr, ok := attrs.Get(string(conventionsv125.HTTPStatusCodeKey)); !statusExists && ok {
} else if httpCodeAttr, ok := attrs.Get("http.status_code"); !statusExists && ok {
// Fallback to introspecting if this span represents a failed HTTP
// request or response, but again, only do so if the `error` tag was
// not set to true and no explicit status was sent.
Expand Down
Loading