@@ -471,12 +471,19 @@ public class SentryOptions {
471471 /** Whether to enable scope persistence so the scope values are preserved if the process dies */
472472 private boolean enableScopePersistence = true ;
473473
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 . */
475475 @ ApiStatus .Experimental private @ Nullable List <FilterString > ignoredCheckIns = null ;
476476
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+ */
478481 @ ApiStatus .Experimental private @ Nullable List <FilterString > ignoredSpanOrigins = null ;
479482
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+ */
480487 private @ Nullable List <FilterString > ignoredTransactions = null ;
481488
482489 @ ApiStatus .Experimental
@@ -2238,11 +2245,23 @@ public void setSendModules(boolean sendModules) {
22382245 this .sendModules = sendModules ;
22392246 }
22402247
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+ */
22412254 @ ApiStatus .Experimental
22422255 public @ Nullable List <FilterString > getIgnoredSpanOrigins () {
22432256 return ignoredSpanOrigins ;
22442257 }
22452258
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+ */
22462265 @ ApiStatus .Experimental
22472266 public void addIgnoredSpanOrigin (String ignoredSpanOrigin ) {
22482267 if (ignoredSpanOrigins == null ) {
@@ -2251,6 +2270,12 @@ public void addIgnoredSpanOrigin(String ignoredSpanOrigin) {
22512270 ignoredSpanOrigins .add (new FilterString (ignoredSpanOrigin ));
22522271 }
22532272
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+ */
22542279 @ ApiStatus .Experimental
22552280 public void setIgnoredSpanOrigins (final @ Nullable List <String > ignoredSpanOrigins ) {
22562281 if (ignoredSpanOrigins == null ) {
@@ -2267,11 +2292,22 @@ public void setIgnoredSpanOrigins(final @Nullable List<String> ignoredSpanOrigin
22672292 }
22682293 }
22692294
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+ */
22702300 @ ApiStatus .Experimental
22712301 public @ Nullable List <FilterString > getIgnoredCheckIns () {
22722302 return ignoredCheckIns ;
22732303 }
22742304
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+ */
22752311 @ ApiStatus .Experimental
22762312 public void addIgnoredCheckIn (String ignoredCheckIn ) {
22772313 if (ignoredCheckIns == null ) {
@@ -2280,6 +2316,11 @@ public void addIgnoredCheckIn(String ignoredCheckIn) {
22802316 ignoredCheckIns .add (new FilterString (ignoredCheckIn ));
22812317 }
22822318
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+ */
22832324 @ ApiStatus .Experimental
22842325 public void setIgnoredCheckIns (final @ Nullable List <String > ignoredCheckIns ) {
22852326 if (ignoredCheckIns == null ) {
@@ -2296,10 +2337,22 @@ public void setIgnoredCheckIns(final @Nullable List<String> ignoredCheckIns) {
22962337 }
22972338 }
22982339
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+ */
22992346 public @ Nullable List <FilterString > getIgnoredTransactions () {
23002347 return ignoredTransactions ;
23012348 }
23022349
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+ */
23032356 @ ApiStatus .Experimental
23042357 public void addIgnoredTransaction (String ignoredTransaction ) {
23052358 if (ignoredTransactions == null ) {
@@ -2308,6 +2361,12 @@ public void addIgnoredTransaction(String ignoredTransaction) {
23082361 ignoredTransactions .add (new FilterString (ignoredTransaction ));
23092362 }
23102363
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+ */
23112370 @ ApiStatus .Experimental
23122371 public void setIgnoredTransactions (final @ Nullable List <String > ignoredTransactions ) {
23132372 if (ignoredTransactions == null ) {
0 commit comments