-
Notifications
You must be signed in to change notification settings - Fork 296
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Blocklist configuration for http client plugin does not work #2208
Comments
This was removed because of issues with the previous plugin system which has since been replaced. It should be possible to restore this feature at this point. I'll have to take a look at how to handle propagation of the sampling decision for these spans. |
This might be related: #2225 |
@clement-heliot Thanks for the additional context in #2225. It wasn't clear to me what the use case was for this was, although it seems pretty clear now that it's basically the same reason that we drop our own requests to avoid seeing observability related requests. The main concern was wether we should just drop the span itself, or also any other spans following from that span, but for this use case it's definitely the latter. We should be able to add this back now. |
👍 yes. I want to reject nested spans in an http-client span which matches the |
@rochdev Just spent 1h or so with an interactive debugger trying to figure out, why Would be super-cool to have this feature back. Thanks! |
@rochdev Thanks! |
Expected behaviour
I read https://datadoghq.dev/dd-trace-js/interfaces/plugins.http.html#blocklist and it saids
However, it seems that
blocklist
of http.client plugin implementation only effects whether to inject tracing headers or not. It seems that the plugin send span of an HTTP request matched inblocklist
to agent.dd-trace-js/packages/datadog-plugin-http/src/client.js
Lines 37 to 51 in 5326afb
Is API document wrong ? 🤔
And I want to reject to instrument for some requests ( they can be detected via URL domain or path). Is there alternative way?
Actual behaviour
Steps to reproduce
Environment
The text was updated successfully, but these errors were encountered: