opentelemetry-js icon indicating copy to clipboard operation
opentelemetry-js copied to clipboard

How to add traceparent only to specific network urls?

Open NatanCoralogix opened this issue 1 year ago • 0 comments
trafficstars

  • [ x] This only affects the JavaScript OpenTelemetry library

Currently, if enabled - the traceparent header is added to all requests. is there a way to specify which urls should be added? for example i have 50 requests, but only want to add the traceparent to 5 of them. i dont want to use the ignoreUrls, since i still need to monitor all.

Datadog has allowedTracingUrls which is a list of allowed urls, that would add the traceparent

Thanks for helping

NatanCoralogix avatar Sep 18 '24 15:09 NatanCoralogix