@@ -1386,9 +1386,7 @@ class SentryClientTest {
13861386
13871387 @Test
13881388 fun `server transaction with ignored HTTP status is dropped before callbacks` () {
1389- fixture.sentryOptions.setTraceIgnoreStatusCodes(
1390- listOf (HttpStatusCodeRange (404 ))
1391- )
1389+ fixture.sentryOptions.setTraceIgnoreStatusCodes(listOf (HttpStatusCodeRange (404 )))
13921390 val processor = mock<EventProcessor >()
13931391 val beforeSend = mock<SentryOptions .BeforeSendTransactionCallback >()
13941392 val replayController = mock<ReplayController >()
@@ -1426,9 +1424,7 @@ class SentryClientTest {
14261424
14271425 @Test
14281426 fun `server transaction with ignored HTTP status range accepts OTel long value` () {
1429- fixture.sentryOptions.setTraceIgnoreStatusCodes(
1430- listOf (HttpStatusCodeRange (500 , 599 ))
1431- )
1427+ fixture.sentryOptions.setTraceIgnoreStatusCodes(listOf (HttpStatusCodeRange (500 , 599 )))
14321428
14331429 val eventId =
14341430 fixture
@@ -1452,9 +1448,7 @@ class SentryClientTest {
14521448
14531449 @Test
14541450 fun `HTTP status filter only applies to server transactions` () {
1455- fixture.sentryOptions.setTraceIgnoreStatusCodes(
1456- listOf (HttpStatusCodeRange (404 ))
1457- )
1451+ fixture.sentryOptions.setTraceIgnoreStatusCodes(listOf (HttpStatusCodeRange (404 )))
14581452 val clientTransaction = createServerTransaction(404 )
14591453 clientTransaction.contexts.trace!! .data[SpanDataConvention .SENTRY_KIND_KEY ] = " client"
14601454 val missingKindTransaction = createServerTransaction(404 )
@@ -1469,9 +1463,7 @@ class SentryClientTest {
14691463
14701464 @Test
14711465 fun `HTTP status filter ignores missing and invalid root status values` () {
1472- fixture.sentryOptions.setTraceIgnoreStatusCodes(
1473- listOf (HttpStatusCodeRange (404 ))
1474- )
1466+ fixture.sentryOptions.setTraceIgnoreStatusCodes(listOf (HttpStatusCodeRange (404 )))
14751467 val invalidStatusValues = listOf (" 404" , 404.0 , 404.5f , 99 , 600 , Long .MAX_VALUE )
14761468 val sut = fixture.getSut()
14771469
@@ -1490,9 +1482,7 @@ class SentryClientTest {
14901482
14911483 @Test
14921484 fun `HTTP status filter does not read child span attributes` () {
1493- fixture.sentryOptions.setTraceIgnoreStatusCodes(
1494- listOf (HttpStatusCodeRange (404 ))
1495- )
1485+ fixture.sentryOptions.setTraceIgnoreStatusCodes(listOf (HttpStatusCodeRange (404 )))
14961486 val tracer =
14971487 SentryTracer (
14981488 TransactionContext (" child-status-transaction" , " op" , TracesSamplingDecision (true )),
@@ -1512,9 +1502,7 @@ class SentryClientTest {
15121502
15131503 @Test
15141504 fun `profiling trace deletion failure for ignored transaction is logged` () {
1515- fixture.sentryOptions.setTraceIgnoreStatusCodes(
1516- listOf (HttpStatusCodeRange (404 ))
1517- )
1505+ fixture.sentryOptions.setTraceIgnoreStatusCodes(listOf (HttpStatusCodeRange (404 )))
15181506 val traceFile = mock<File >()
15191507 whenever(traceFile.delete()).thenReturn(false )
15201508 whenever(traceFile.path).thenReturn(" undeletable.trace" )
0 commit comments