getsentry / getsentry/sentry-java

Add option to exclude certain HTTP statuses from tracing in SDK

Aperta
#4,735 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Feature Java Performance (New) Traces
Lingua principale
Kotlin
Stelle
1.4k
Fork
478
Merge medio
2g 22h
PR unite (30g)
69

Descrizione

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](https://github.com/getsentry/sentry-laravel/blob/master/config/sentry.php#L121-L122), [JavaScript](https://github.com/getsentry/sentry-javascript/pull/16205)).

* New config option (e.g. trace_ignore_status_codes: \[404, ...\])
* Backwards compatible (default still traces 404s)
* Tests + docs updated

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.