|
52 | 52 | `logsEnabled` argument. Pass `false` to keep Sentry Logs disabled. |
53 | 53 | - Disable tracing for HTTP `OPTIONS` requests by default. Set `traceOptionsRequests` to `true` to |
54 | 54 | preserve the previous behavior ([#6254](https://github.com/getsentry/sentry-java/pull/6254)) |
| 55 | +- Incoming HTTP server transactions that finish with status 404 are no longer sent to Sentry by |
| 56 | + default. This includes matched endpoints that intentionally return 404. Outgoing HTTP requests |
| 57 | + that receive a 404 are unaffected. |
| 58 | + |
| 59 | + Restore the previous behavior and trace every incoming HTTP status with an empty configuration: |
| 60 | + |
| 61 | + Java: |
| 62 | + |
| 63 | + ```java |
| 64 | + import java.util.Collections; |
| 65 | + |
| 66 | + options.setTraceIgnoreStatusCodes(Collections.emptyList()); |
| 67 | + ``` |
| 68 | + |
| 69 | + `sentry.properties`: |
| 70 | + |
| 71 | + ```properties |
| 72 | + trace-ignore-status-codes= |
| 73 | + ``` |
| 74 | + |
| 75 | + Spring Boot `application.properties`: |
| 76 | + |
| 77 | + ```properties |
| 78 | + sentry.trace-ignore-status-codes= |
| 79 | + ``` |
| 80 | + |
| 81 | + Spring Boot `application.yml`: |
| 82 | + |
| 83 | + ```yaml |
| 84 | + sentry: |
| 85 | + trace-ignore-status-codes: [] |
| 86 | + ``` |
| 87 | +
|
| 88 | + The final response status is only known after sampling and request handling. The transaction may |
| 89 | + already have propagated a sampled trace to downstream services, which can still report their |
| 90 | + segments. Local child spans are discarded with the ignored transaction. Continuous profile |
| 91 | + chunks are reported independently. External OTLP export does not pass through `SentryClient` and |
| 92 | + is not filtered by this option. |
55 | 93 | - Remove the Apache HttpClient transport and stop publishing `sentry-apache-http-client-5` ([#6214](https://github.com/getsentry/sentry-java/pull/6214)) |
56 | 94 | - Remove the deprecated `Instrumenter` enum, option, span context property, and `startChild` overloads ([#6252](https://github.com/getsentry/sentry-java/pull/6252)) |
57 | 95 | - Remove deprecated OpenTelemetry integration classes and the legacy `SentrySpanStorage` ([#6243](https://github.com/getsentry/sentry-java/pull/6243)) |
|
0 commit comments