Skip to content

Commit

Permalink
Add Url.Full
Browse files Browse the repository at this point in the history
  • Loading branch information
stevejgordon committed Aug 10, 2023
1 parent a636758 commit b70c62a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions input/otlp/traces.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -652,6 +654,11 @@ func TranslateSpan(spanKind ptrace.SpanKind, attributes pcommon.Map, event *mode
isRPC = true
case semconv.AttributeRPCMethod:

// url.*
case attributeUrlFull:
httpURL = stringval
isHTTP = true

// miscellaneous
case "span.kind": // filter out
case semconv.AttributePeerService:
Expand Down

0 comments on commit b70c62a

Please sign in to comment.