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 29, 2023
1 parent 3d5c2a7 commit 8d5e52c
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 @@ -70,6 +70,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 @@ -651,6 +653,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 8d5e52c

Please sign in to comment.