@@ -471,12 +471,19 @@ public class SentryOptions {
471
471
/** Whether to enable scope persistence so the scope values are preserved if the process dies */
472
472
private boolean enableScopePersistence = true ;
473
473
474
- /** Contains a list of monitor slugs for which check-ins should not be sent. */
474
+ /** The monitor slugs for which captured check-ins should not be sent to Sentry . */
475
475
@ ApiStatus .Experimental private @ Nullable List <FilterString > ignoredCheckIns = null ;
476
476
477
- /** Contains a list of span origins for which spans / transactions should not be created. */
477
+ /**
478
+ * Strings or regex patterns that the origin of a new span/transaction will be tested against. If
479
+ * there is a match, the span/transaction will not be created.
480
+ */
478
481
@ ApiStatus .Experimental private @ Nullable List <FilterString > ignoredSpanOrigins = null ;
479
482
483
+ /**
484
+ * Strings or regex patterns that captured transaction names will be tested against. If there is a
485
+ * match, the transaction will not be sent to Sentry.
486
+ */
480
487
private @ Nullable List <FilterString > ignoredTransactions = null ;
481
488
482
489
@ ApiStatus .Experimental
@@ -2238,11 +2245,23 @@ public void setSendModules(boolean sendModules) {
2238
2245
this .sendModules = sendModules ;
2239
2246
}
2240
2247
2248
+ /**
2249
+ * Returns the list of strings/regex patterns the origin of a new span/transaction will be tested
2250
+ * against to determine whether the span/transaction shall be created.
2251
+ *
2252
+ * @return the list of strings or regex patterns
2253
+ */
2241
2254
@ ApiStatus .Experimental
2242
2255
public @ Nullable List <FilterString > getIgnoredSpanOrigins () {
2243
2256
return ignoredSpanOrigins ;
2244
2257
}
2245
2258
2259
+ /**
2260
+ * Adds an item to the list of strings/regex patterns the origin of a new span/transaction will be
2261
+ * tested against to determine whether the span/transaction shall be created.
2262
+ *
2263
+ * @param ignoredSpanOrigin the string/regex pattern
2264
+ */
2246
2265
@ ApiStatus .Experimental
2247
2266
public void addIgnoredSpanOrigin (String ignoredSpanOrigin ) {
2248
2267
if (ignoredSpanOrigins == null ) {
@@ -2251,6 +2270,12 @@ public void addIgnoredSpanOrigin(String ignoredSpanOrigin) {
2251
2270
ignoredSpanOrigins .add (new FilterString (ignoredSpanOrigin ));
2252
2271
}
2253
2272
2273
+ /**
2274
+ * Sets the list of strings/regex patterns the origin of a new span/transaction will be tested
2275
+ * against to determine whether the span/transaction shall be created.
2276
+ *
2277
+ * @param ignoredSpanOrigins the list of strings/regex patterns
2278
+ */
2254
2279
@ ApiStatus .Experimental
2255
2280
public void setIgnoredSpanOrigins (final @ Nullable List <String > ignoredSpanOrigins ) {
2256
2281
if (ignoredSpanOrigins == null ) {
@@ -2267,11 +2292,22 @@ public void setIgnoredSpanOrigins(final @Nullable List<String> ignoredSpanOrigin
2267
2292
}
2268
2293
}
2269
2294
2295
+ /**
2296
+ * Returns the list of monitor slugs for which captured check-ins should not be sent to Sentry.
2297
+ *
2298
+ * @return the list of monitor slugs
2299
+ */
2270
2300
@ ApiStatus .Experimental
2271
2301
public @ Nullable List <FilterString > getIgnoredCheckIns () {
2272
2302
return ignoredCheckIns ;
2273
2303
}
2274
2304
2305
+ /**
2306
+ * Adds a monitor slug to the list of slugs for which captured check-ins should not be sent to
2307
+ * Sentry.
2308
+ *
2309
+ * @param ignoredCheckIn the monitor slug
2310
+ */
2275
2311
@ ApiStatus .Experimental
2276
2312
public void addIgnoredCheckIn (String ignoredCheckIn ) {
2277
2313
if (ignoredCheckIns == null ) {
@@ -2280,6 +2316,11 @@ public void addIgnoredCheckIn(String ignoredCheckIn) {
2280
2316
ignoredCheckIns .add (new FilterString (ignoredCheckIn ));
2281
2317
}
2282
2318
2319
+ /**
2320
+ * Sets the list of monitor slugs for which captured check-ins should not be sent to Sentry.
2321
+ *
2322
+ * @param ignoredCheckIns the list of monitor slugs for which check-ins should not be sent
2323
+ */
2283
2324
@ ApiStatus .Experimental
2284
2325
public void setIgnoredCheckIns (final @ Nullable List <String > ignoredCheckIns ) {
2285
2326
if (ignoredCheckIns == null ) {
@@ -2296,10 +2337,22 @@ public void setIgnoredCheckIns(final @Nullable List<String> ignoredCheckIns) {
2296
2337
}
2297
2338
}
2298
2339
2340
+ /**
2341
+ * Returns the list of strings/regex patterns that captured transaction names are checked against
2342
+ * to determine if a transaction shall be sent to Sentry or ignored.
2343
+ *
2344
+ * @return the list of strings/regex patterns
2345
+ */
2299
2346
public @ Nullable List <FilterString > getIgnoredTransactions () {
2300
2347
return ignoredTransactions ;
2301
2348
}
2302
2349
2350
+ /**
2351
+ * Adds an element the list of strings/regex patterns that captured transaction names are checked
2352
+ * against to determine if a transaction shall be sent to Sentry or ignored.
2353
+ *
2354
+ * @param ignoredTransaction the string/regex pattern
2355
+ */
2303
2356
@ ApiStatus .Experimental
2304
2357
public void addIgnoredTransaction (String ignoredTransaction ) {
2305
2358
if (ignoredTransactions == null ) {
@@ -2308,6 +2361,12 @@ public void addIgnoredTransaction(String ignoredTransaction) {
2308
2361
ignoredTransactions .add (new FilterString (ignoredTransaction ));
2309
2362
}
2310
2363
2364
+ /**
2365
+ * Sets the list of strings/regex patterns that captured transaction names are checked against to
2366
+ * determine if a transaction shall be sent to Sentry or ignored.
2367
+ *
2368
+ * @param ignoredTransactions the list of string/regex patterns
2369
+ */
2311
2370
@ ApiStatus .Experimental
2312
2371
public void setIgnoredTransactions (final @ Nullable List <String > ignoredTransactions ) {
2313
2372
if (ignoredTransactions == null ) {
0 commit comments