Add option to exclude certain HTTP statuses from tracing
dingsdax opened this issue · 2 comments
dingsdax commented
If not already implemented or only partially implemented:
SDK should not trace incoming 404s by default to reduce noise. Add a config option to exclude specific HTTP statuses from tracing. This should mirror existing behavior in other SDKs (Laravel, JavaScript).
- New config option (e.g. trace_ignore_status_codes: [404, ...])
- Backwards compatible (default still traces 404s)
- Tests + docs updated
alexander-alderman-webb commented
I tried out all the integrations we have and created issues for all but one.
For pyramid, querying a path that is not served you encounter a pyramid.httpexceptions.HTTPNotFound that currently is not handled. That may be worth addressing before we add the option in pyramid as well?