-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Filter http server spans that have 4xx http status in Node #11720
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
Comments
So to add some details on this: We cannot do this in the sampler or in any hook for the instrumentation, because at this point we don't know the status yet. Is this an OK solution for us? Or would it possibly make more sense to do this in relay then, and just drop this there (or have a new inbound filter for this, for example)? It would also be interesting to see how others handle this, e.g. is it normal to filter these out in other otel products or not so much cc @smeubank |
I would assume that in the majority of cases where an app emits a 404, very little application code is actually invoked. This leaves us with a much smaller subset of requests where the developer, somewhere in their application, emits a 404 on purpose. I think this is an OK trade-off to make. |
As a user I'd also like note that some amount of sampling of 4xx is useful for us. For example we throw 4xx for invalid auth headers and spikes here could alert us to upstream issues as well as providing telemetry on sign up issues (e.g. missing password validation requirements spiking might be a UX concern). That said, I would love to be able to sample these independently. |
Thanks for sharing your use case! I think it would make sense to filter the 4xx codes by default and give you the possibility to configure which codes you still want to have enabled. |
You should use a log service instead of an issue service for this purpose. IMO |
Problem Statement
Drop all 4xx root spans
Solution Brainstorm
Tasks
shouldHandleError
#15771The text was updated successfully, but these errors were encountered: