Skip to content

Commit becc6d0

Browse files
committed
changelog
1 parent b9bad2a commit becc6d0

4 files changed

Lines changed: 7 additions & 13 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
already have propagated a sampled trace to downstream services, which can still report their
9090
segments. Local child spans are discarded with the ignored transaction. Continuous profile
9191
chunks are reported independently. External OTLP export does not pass through `SentryClient` and
92-
is not filtered by this option.
92+
is not filtered by this option ([#6567](https://github.com/getsentry/sentry-java/pull/6567))
9393
- Remove the Apache HttpClient transport and stop publishing `sentry-apache-http-client-5` ([#6214](https://github.com/getsentry/sentry-java/pull/6214))
9494
- Remove the deprecated `Instrumenter` enum, option, span context property, and `startChild` overloads ([#6252](https://github.com/getsentry/sentry-java/pull/6252))
9595
- Remove deprecated OpenTelemetry integration classes and the legacy `SentrySpanStorage` ([#6243](https://github.com/getsentry/sentry-java/pull/6243))

‎sentry/src/main/java/io/sentry/SentryOptions.java‎

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3168,15 +3168,13 @@ public void setIgnoredTransactions(final @Nullable List<String> ignoredTransacti
31683168
* accepts comma-separated codes and ranges such as {@code 404,410,500-599}. An empty list or
31693169
* {@code null} disables this filter.
31703170
*
3171-
* @param traceIgnoreStatusCodes the HTTP status code ranges, or {@code null} to
3172-
* disable the filter
3171+
* @param traceIgnoreStatusCodes the HTTP status code ranges, or {@code null} to disable the
3172+
* filter
31733173
*/
31743174
public void setTraceIgnoreStatusCodes(
31753175
final @Nullable List<HttpStatusCodeRange> traceIgnoreStatusCodes) {
31763176
this.traceIgnoreStatusCodes =
3177-
traceIgnoreStatusCodes == null
3178-
? null
3179-
: new ArrayList<>(traceIgnoreStatusCodes);
3177+
traceIgnoreStatusCodes == null ? null : new ArrayList<>(traceIgnoreStatusCodes);
31803178
}
31813179

31823180
/** Returns the current {@link SentryDateProvider} that is used to retrieve the current date. */
@@ -3856,8 +3854,7 @@ public void merge(final @NotNull ExternalOptions options) {
38563854
setIgnoredTransactions(ignoredTransactions);
38573855
}
38583856
if (options.getTraceIgnoreStatusCodes() != null) {
3859-
setTraceIgnoreStatusCodes(
3860-
options.getTraceIgnoreStatusCodes());
3857+
setTraceIgnoreStatusCodes(options.getTraceIgnoreStatusCodes());
38613858
}
38623859
if (options.getIgnoredErrors() != null) {
38633860
final List<String> ignoredExceptions = new ArrayList<>(options.getIgnoredErrors());

‎sentry/src/test/java/io/sentry/SentryClientTest.kt‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1432,9 +1432,7 @@ class SentryClientTest {
14321432

14331433
@Test
14341434
fun `custom HTTP status range replaces default and accepts OTel long value`() {
1435-
fixture.sentryOptions.setTraceIgnoreStatusCodes(
1436-
listOf(HttpStatusCodeRange(500, 599))
1437-
)
1435+
fixture.sentryOptions.setTraceIgnoreStatusCodes(listOf(HttpStatusCodeRange(500, 599)))
14381436
val sut = fixture.getSut()
14391437

14401438
val ignoredEventId =

‎sentry/src/test/java/io/sentry/SentryOptionsTest.kt‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1116,8 +1116,7 @@ class SentryOptionsTest {
11161116
options.traceIgnoreStatusCodes = emptyList()
11171117
assertThat(options.traceIgnoreStatusCodes).isEmpty()
11181118

1119-
options.traceIgnoreStatusCodes =
1120-
listOf(HttpStatusCodeRange(404), HttpStatusCodeRange(500, 599))
1119+
options.traceIgnoreStatusCodes = listOf(HttpStatusCodeRange(404), HttpStatusCodeRange(500, 599))
11211120
assertThat(options.traceIgnoreStatusCodes).hasSize(2)
11221121
assertThat(options.traceIgnoreStatusCodes!![0].isInRange(404)).isTrue()
11231122
assertThat(options.traceIgnoreStatusCodes!![1].isInRange(599)).isTrue()

0 commit comments

Comments
 (0)