Skip to content

How to selectively filter HttpClient Instrumentation? #5524

Answered by cijothomas
pbolduc asked this question in Q&A
Discussion options

You must be logged in to vote

https://github.com/open-telemetry/opentelemetry-dotnet/tree/main/src/OpenTelemetry.Instrumentation.Http#filter-httpclient-api

Enrich is intended for enrichment, not filtering (though, it can technically be used as your example demonstrated.)
For you use-case, use the filtering capability provided by the instrumentation itself, as it'll likely be faster than the general purpose ActivityProcessor approach!

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@pbolduc
Comment options

@cijothomas
Comment options

Answer selected by pbolduc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants