diff --git a/input/otlp/traces.go b/input/otlp/traces.go index 23beef7e..70402c41 100644 --- a/input/otlp/traces.go +++ b/input/otlp/traces.go @@ -71,6 +71,8 @@ const ( attributeNetworkMNC = "net.host.carrier.mnc" attributeNetworkCarrierName = "net.host.carrier.name" attributeNetworkICC = "net.host.carrier.icc" + + attributeUrlFull = "url.full" ) // ConsumeTraces consumes OpenTelemetry trace data, @@ -560,7 +562,7 @@ func TranslateSpan(spanKind ptrace.SpanKind, attributes pcommon.Map, event *mode case semconv.AttributeHTTPTarget: httpTarget = stringval isHTTP = true - case semconv.AttributeHTTPURL: + case semconv.AttributeURLFULL: httpURL = stringval isHTTP = true case semconv.AttributeHTTPMethod: @@ -652,6 +654,11 @@ func TranslateSpan(spanKind ptrace.SpanKind, attributes pcommon.Map, event *mode isRPC = true case semconv.AttributeRPCMethod: + // url.* + case semconv.AttributeHTTPURL: + httpURL = stringval + isHTTP = true + // miscellaneous case "span.kind": // filter out case semconv.AttributePeerService: