Repository navigation
Expand file tree
/
Copy pathExternalOptions.java
More file actions
775 lines (617 loc) · 26.2 KB
/
Copy pathExternalOptions.java
File metadata and controls
775 lines (617 loc) · 26.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
package io.sentry;
import io.sentry.config.PropertiesProvider;
import java.util.*;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.CopyOnWriteArrayList;
import java.util.concurrent.CopyOnWriteArraySet;
import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
/** Externally bindable properties set on {@link SentryOptions}. */
public final class ExternalOptions {
/** The default HTTP proxy port to use if an HTTP Proxy hostname is set but port is not. */
private static final String PROXY_PORT_DEFAULT = "80";
private @Nullable String dsn;
private @Nullable String environment;
private @Nullable String release;
private @Nullable String dist;
private @Nullable String serverName;
private @Nullable Boolean enableUncaughtExceptionHandler;
private @Nullable Boolean debug;
private @Nullable Boolean enableDeduplication;
private @Nullable Double sampleRate;
private @Nullable Double tracesSampleRate;
private @Nullable Double profilesSampleRate;
private @Nullable SentryOptions.RequestSize maxRequestBodySize;
private final @NotNull Map<String, @NotNull String> tags = new ConcurrentHashMap<>();
private @Nullable SentryOptions.Proxy proxy;
private final @NotNull List<String> inAppExcludes = new CopyOnWriteArrayList<>();
private final @NotNull List<String> inAppIncludes = new CopyOnWriteArrayList<>();
private @Nullable List<String> tracePropagationTargets = null;
private final @NotNull List<String> contextTags = new CopyOnWriteArrayList<>();
private @Nullable String proguardUuid;
private @Nullable Long idleTimeout;
private @Nullable Long shutdownTimeoutMillis;
private @Nullable Long sessionFlushTimeoutMillis;
private final @NotNull Set<Class<? extends Throwable>> ignoredExceptionsForType =
new CopyOnWriteArraySet<>();
private @Nullable List<String> ignoredErrors;
private @Nullable Boolean printUncaughtStackTrace;
private @Nullable Boolean sendClientReports;
private @NotNull Set<String> bundleIds = new CopyOnWriteArraySet<>();
private @Nullable Boolean enabled;
private @Nullable Boolean enablePrettySerializationOutput;
private @Nullable Boolean enableSpotlight;
private @Nullable Boolean enableLogs;
private @Nullable Boolean enableMetrics;
private @Nullable String spotlightConnectionUrl;
private @Nullable List<String> ignoredCheckIns;
private @Nullable List<String> ignoredTransactions;
private @Nullable Boolean sendModules;
private @Nullable Boolean sendDefaultPii;
private @Nullable DataCollection dataCollection;
private @Nullable Boolean enableBackpressureHandling;
private @Nullable Boolean enableDatabaseTransactionTracing;
private @Nullable Boolean enableCacheTracing;
private @Nullable Boolean enableQueueTracing;
private @Nullable Boolean globalHubMode;
private @Nullable Boolean forceInit;
private @Nullable Boolean captureOpenTelemetryEvents;
private @Nullable Double profileSessionSampleRate;
private @Nullable String profilingTracesDirPath;
private @Nullable ProfileLifecycle profileLifecycle;
private @Nullable Boolean strictTraceContinuation;
private @Nullable String orgId;
private @Nullable SentryOptions.Cron cron;
@SuppressWarnings("unchecked")
public static @NotNull ExternalOptions from(
final @NotNull PropertiesProvider propertiesProvider, final @NotNull ILogger logger) {
final ExternalOptions options = new ExternalOptions();
options.setDsn(propertiesProvider.getProperty("dsn"));
options.setEnvironment(propertiesProvider.getProperty("environment"));
options.setRelease(propertiesProvider.getProperty("release"));
options.setDist(propertiesProvider.getProperty("dist"));
options.setServerName(propertiesProvider.getProperty("servername"));
options.setEnableUncaughtExceptionHandler(
propertiesProvider.getBooleanProperty("uncaught.handler.enabled"));
options.setPrintUncaughtStackTrace(
propertiesProvider.getBooleanProperty("uncaught.handler.print-stacktrace"));
options.setSampleRate(propertiesProvider.getDoubleProperty("sample-rate"));
options.setTracesSampleRate(propertiesProvider.getDoubleProperty("traces-sample-rate"));
options.setProfilesSampleRate(propertiesProvider.getDoubleProperty("profiles-sample-rate"));
options.setDebug(propertiesProvider.getBooleanProperty("debug"));
options.setEnableDeduplication(propertiesProvider.getBooleanProperty("enable-deduplication"));
options.setSendClientReports(propertiesProvider.getBooleanProperty("send-client-reports"));
options.setForceInit(propertiesProvider.getBooleanProperty("force-init"));
final String maxRequestBodySize = propertiesProvider.getProperty("max-request-body-size");
if (maxRequestBodySize != null) {
options.setMaxRequestBodySize(
SentryOptions.RequestSize.valueOf(maxRequestBodySize.toUpperCase(Locale.ROOT)));
}
final Map<String, String> tags = propertiesProvider.getMap("tags");
for (final Map.Entry<String, String> tag : tags.entrySet()) {
options.setTag(tag.getKey(), tag.getValue());
}
final String proxyHost = propertiesProvider.getProperty("proxy.host");
final String proxyUser = propertiesProvider.getProperty("proxy.user");
final String proxyPass = propertiesProvider.getProperty("proxy.pass");
final String proxyPort = propertiesProvider.getProperty("proxy.port", PROXY_PORT_DEFAULT);
if (proxyHost != null) {
options.setProxy(new SentryOptions.Proxy(proxyHost, proxyPort, proxyUser, proxyPass));
}
for (final String inAppInclude : propertiesProvider.getList("in-app-includes")) {
options.addInAppInclude(inAppInclude);
}
for (final String inAppExclude : propertiesProvider.getList("in-app-excludes")) {
options.addInAppExclude(inAppExclude);
}
@Nullable List<String> tracePropagationTargets = null;
if (propertiesProvider.getProperty("trace-propagation-targets") != null) {
tracePropagationTargets = propertiesProvider.getList("trace-propagation-targets");
}
// TODO: Remove once tracing-origins has been removed
if (tracePropagationTargets == null
&& propertiesProvider.getProperty("tracing-origins") != null) {
tracePropagationTargets = propertiesProvider.getList("tracing-origins");
}
if (tracePropagationTargets != null) {
for (final String tracePropagationTarget : tracePropagationTargets) {
options.addTracePropagationTarget(tracePropagationTarget);
}
}
for (final String contextTag : propertiesProvider.getList("context-tags")) {
options.addContextTag(contextTag);
}
options.setProguardUuid(propertiesProvider.getProperty("proguard-uuid"));
for (final String bundleId : propertiesProvider.getList("bundle-ids")) {
options.addBundleId(bundleId);
}
options.setIdleTimeout(propertiesProvider.getLongProperty("idle-timeout"));
options.setShutdownTimeoutMillis(propertiesProvider.getLongProperty("shutdown-timeout-millis"));
options.setSessionFlushTimeoutMillis(
propertiesProvider.getLongProperty("session-flush-timeout-millis"));
options.setIgnoredErrors(propertiesProvider.getListOrNull("ignored-errors"));
options.setEnabled(propertiesProvider.getBooleanProperty("enabled"));
options.setEnablePrettySerializationOutput(
propertiesProvider.getBooleanProperty("enable-pretty-serialization-output"));
options.setSendModules(propertiesProvider.getBooleanProperty("send-modules"));
options.setSendDefaultPii(propertiesProvider.getBooleanProperty("send-default-pii"));
options.setDataCollection(parseDataCollection(propertiesProvider));
options.setIgnoredCheckIns(propertiesProvider.getListOrNull("ignored-checkins"));
options.setIgnoredTransactions(propertiesProvider.getListOrNull("ignored-transactions"));
options.setEnableBackpressureHandling(
propertiesProvider.getBooleanProperty("enable-backpressure-handling"));
options.setEnableDatabaseTransactionTracing(
propertiesProvider.getBooleanProperty("enable-database-transaction-tracing"));
options.setEnableCacheTracing(propertiesProvider.getBooleanProperty("enable-cache-tracing"));
options.setEnableQueueTracing(propertiesProvider.getBooleanProperty("enable-queue-tracing"));
options.setGlobalHubMode(propertiesProvider.getBooleanProperty("global-hub-mode"));
options.setCaptureOpenTelemetryEvents(
propertiesProvider.getBooleanProperty("capture-open-telemetry-events"));
options.setEnableLogs(propertiesProvider.getBooleanProperty("logs.enabled"));
options.setEnableMetrics(propertiesProvider.getBooleanProperty("metrics.enabled"));
for (final String ignoredExceptionType :
propertiesProvider.getList("ignored-exceptions-for-type")) {
try {
Class<?> clazz = Class.forName(ignoredExceptionType);
if (Throwable.class.isAssignableFrom(clazz)) {
options.addIgnoredExceptionForType((Class<? extends Throwable>) clazz);
} else {
logger.log(
SentryLevel.WARNING,
"Skipping setting %s as ignored-exception-for-type. Reason: %s does not extend Throwable",
ignoredExceptionType,
ignoredExceptionType);
}
} catch (ClassNotFoundException e) {
logger.log(
SentryLevel.WARNING,
"Skipping setting %s as ignored-exception-for-type. Reason: %s class is not found",
ignoredExceptionType,
ignoredExceptionType);
}
}
final Long cronDefaultCheckinMargin =
propertiesProvider.getLongProperty("cron.default-checkin-margin");
final Long cronDefaultMaxRuntime =
propertiesProvider.getLongProperty("cron.default-max-runtime");
final String cronDefaultTimezone = propertiesProvider.getProperty("cron.default-timezone");
final Long cronDefaultFailureIssueThreshold =
propertiesProvider.getLongProperty("cron.default-failure-issue-threshold");
final Long cronDefaultRecoveryThreshold =
propertiesProvider.getLongProperty("cron.default-recovery-threshold");
if (cronDefaultCheckinMargin != null
|| cronDefaultMaxRuntime != null
|| cronDefaultTimezone != null
|| cronDefaultFailureIssueThreshold != null
|| cronDefaultRecoveryThreshold != null) {
SentryOptions.Cron cron = new SentryOptions.Cron();
cron.setDefaultCheckinMargin(cronDefaultCheckinMargin);
cron.setDefaultMaxRuntime(cronDefaultMaxRuntime);
cron.setDefaultTimezone(cronDefaultTimezone);
cron.setDefaultFailureIssueThreshold(cronDefaultFailureIssueThreshold);
cron.setDefaultRecoveryThreshold(cronDefaultRecoveryThreshold);
options.setCron(cron);
}
options.setStrictTraceContinuation(
propertiesProvider.getBooleanProperty("enable-strict-trace-continuation"));
options.setOrgId(propertiesProvider.getProperty("org-id"));
options.setEnableSpotlight(propertiesProvider.getBooleanProperty("enable-spotlight"));
options.setSpotlightConnectionUrl(propertiesProvider.getProperty("spotlight-connection-url"));
options.setProfileSessionSampleRate(
propertiesProvider.getDoubleProperty("profile-session-sample-rate"));
options.setProfilingTracesDirPath(propertiesProvider.getProperty("profiling-traces-dir-path"));
String profileLifecycleString = propertiesProvider.getProperty("profile-lifecycle");
if (profileLifecycleString != null && !profileLifecycleString.isEmpty()) {
options.setProfileLifecycle(ProfileLifecycle.valueOf(profileLifecycleString.toUpperCase()));
}
return options;
}
private static @Nullable DataCollection parseDataCollection(
final @NotNull PropertiesProvider propertiesProvider) {
final DataCollection dataCollection = new DataCollection(false);
final Boolean userInfo = propertiesProvider.getBooleanProperty("data-collection.user-info");
if (userInfo != null) {
dataCollection.setUserInfo(userInfo);
}
final Set<HttpBodyType> httpBodies = parseHttpBodies(propertiesProvider);
if (httpBodies != null) {
dataCollection.setHttpBodies(httpBodies);
}
final KeyValueCollectionBehavior cookies =
parseKeyValueCollectionBehavior(propertiesProvider, "data-collection.cookies");
if (cookies != null) {
dataCollection.setCookies(cookies);
}
final KeyValueCollectionBehavior requestHeaders =
parseKeyValueCollectionBehavior(propertiesProvider, "data-collection.http-headers.request");
if (requestHeaders != null) {
dataCollection.getHttpHeaders().setRequest(requestHeaders);
}
final KeyValueCollectionBehavior responseHeaders =
parseKeyValueCollectionBehavior(
propertiesProvider, "data-collection.http-headers.response");
if (responseHeaders != null) {
dataCollection.getHttpHeaders().setResponse(responseHeaders);
}
final KeyValueCollectionBehavior queryParams =
parseKeyValueCollectionBehavior(propertiesProvider, "data-collection.url-query-params");
if (queryParams != null) {
dataCollection.setUrlQueryParams(queryParams);
}
final Boolean graphqlDocument =
propertiesProvider.getBooleanProperty("data-collection.graphql.document");
if (graphqlDocument != null) {
dataCollection.getGraphql().setDocument(graphqlDocument);
}
final Boolean graphqlVariables =
propertiesProvider.getBooleanProperty("data-collection.graphql.variables");
if (graphqlVariables != null) {
dataCollection.getGraphql().setVariables(graphqlVariables);
}
final Boolean databaseQueryData =
propertiesProvider.getBooleanProperty("data-collection.database-query-data");
if (databaseQueryData != null) {
dataCollection.setDatabaseQueryData(databaseQueryData);
}
final Boolean filePaths = propertiesProvider.getBooleanProperty("data-collection.file-paths");
if (filePaths != null) {
dataCollection.setFilePaths(filePaths);
}
return dataCollection.isExplicitlyConfigured() ? dataCollection : null;
}
private static @Nullable Set<HttpBodyType> parseHttpBodies(
final @NotNull PropertiesProvider propertiesProvider) {
final List<String> bodyTypes = propertiesProvider.getListOrNull("data-collection.http-bodies");
if (bodyTypes == null) {
return null;
}
if (bodyTypes.size() == 1 && bodyTypes.get(0).isEmpty()) {
return Collections.emptySet();
}
final Set<HttpBodyType> httpBodies = EnumSet.noneOf(HttpBodyType.class);
for (final String bodyType : bodyTypes) {
httpBodies.add(HttpBodyType.valueOf(bodyType.toUpperCase(Locale.ROOT)));
}
return httpBodies;
}
private static @Nullable KeyValueCollectionBehavior parseKeyValueCollectionBehavior(
final @NotNull PropertiesProvider propertiesProvider, final @NotNull String property) {
final String modeValue = propertiesProvider.getProperty(property + ".mode");
final List<String> terms = propertiesProvider.getListOrNull(property + ".terms");
if (modeValue == null && terms == null) {
return null;
}
final KeyValueCollectionBehavior behavior = new KeyValueCollectionBehavior();
if (modeValue != null) {
behavior.setMode(KeyValueCollectionBehavior.Mode.valueOf(modeValue.toUpperCase(Locale.ROOT)));
}
if (terms != null) {
behavior.setTerms(terms);
}
return behavior;
}
public @Nullable String getDsn() {
return dsn;
}
public void setDsn(final @Nullable String dsn) {
this.dsn = dsn;
}
public @Nullable String getEnvironment() {
return environment;
}
public void setEnvironment(final @Nullable String environment) {
this.environment = environment;
}
public @Nullable String getRelease() {
return release;
}
public void setRelease(final @Nullable String release) {
this.release = release;
}
public @Nullable String getDist() {
return dist;
}
public void setDist(final @Nullable String dist) {
this.dist = dist;
}
public @Nullable String getServerName() {
return serverName;
}
public void setServerName(final @Nullable String serverName) {
this.serverName = serverName;
}
public @Nullable Boolean getEnableUncaughtExceptionHandler() {
return enableUncaughtExceptionHandler;
}
public void setEnableUncaughtExceptionHandler(
final @Nullable Boolean enableUncaughtExceptionHandler) {
this.enableUncaughtExceptionHandler = enableUncaughtExceptionHandler;
}
public @Nullable List<String> getTracePropagationTargets() {
return tracePropagationTargets;
}
public @Nullable Boolean getDebug() {
return debug;
}
public void setDebug(final @Nullable Boolean debug) {
this.debug = debug;
}
public @Nullable Boolean getEnableDeduplication() {
return enableDeduplication;
}
public void setEnableDeduplication(final @Nullable Boolean enableDeduplication) {
this.enableDeduplication = enableDeduplication;
}
public @Nullable Double getSampleRate() {
return sampleRate;
}
public void setSampleRate(final @Nullable Double sampleRate) {
this.sampleRate = sampleRate;
}
public @Nullable Double getTracesSampleRate() {
return tracesSampleRate;
}
public void setTracesSampleRate(final @Nullable Double tracesSampleRate) {
this.tracesSampleRate = tracesSampleRate;
}
public @Nullable Double getProfilesSampleRate() {
return profilesSampleRate;
}
public void setProfilesSampleRate(final @Nullable Double profilesSampleRate) {
this.profilesSampleRate = profilesSampleRate;
}
public @Nullable SentryOptions.RequestSize getMaxRequestBodySize() {
return maxRequestBodySize;
}
public void setMaxRequestBodySize(final @Nullable SentryOptions.RequestSize maxRequestBodySize) {
this.maxRequestBodySize = maxRequestBodySize;
}
public @NotNull Map<String, String> getTags() {
return tags;
}
public @Nullable SentryOptions.Proxy getProxy() {
return proxy;
}
public void setProxy(final @Nullable SentryOptions.Proxy proxy) {
this.proxy = proxy;
}
public @NotNull List<String> getInAppExcludes() {
return inAppExcludes;
}
public @NotNull List<String> getInAppIncludes() {
return inAppIncludes;
}
public @NotNull List<String> getContextTags() {
return contextTags;
}
public @Nullable String getProguardUuid() {
return proguardUuid;
}
public void setProguardUuid(final @Nullable String proguardUuid) {
this.proguardUuid = proguardUuid;
}
public @NotNull Set<Class<? extends Throwable>> getIgnoredExceptionsForType() {
return ignoredExceptionsForType;
}
public void addInAppInclude(final @NotNull String include) {
inAppIncludes.add(include);
}
public void addInAppExclude(final @NotNull String exclude) {
inAppExcludes.add(exclude);
}
public void addTracePropagationTarget(final @NotNull String tracePropagationTarget) {
if (tracePropagationTargets == null) {
tracePropagationTargets = new CopyOnWriteArrayList<>();
}
if (!tracePropagationTarget.isEmpty()) {
this.tracePropagationTargets.add(tracePropagationTarget);
}
}
public void addContextTag(final @NotNull String contextTag) {
this.contextTags.add(contextTag);
}
public void addIgnoredExceptionForType(final @NotNull Class<? extends Throwable> exceptionType) {
this.ignoredExceptionsForType.add(exceptionType);
}
public void setTag(final @NotNull String key, final @NotNull String value) {
this.tags.put(key, value);
}
public @Nullable Boolean getPrintUncaughtStackTrace() {
return printUncaughtStackTrace;
}
public void setPrintUncaughtStackTrace(final @Nullable Boolean printUncaughtStackTrace) {
this.printUncaughtStackTrace = printUncaughtStackTrace;
}
public @Nullable Long getIdleTimeout() {
return idleTimeout;
}
public void setIdleTimeout(final @Nullable Long idleTimeout) {
this.idleTimeout = idleTimeout;
}
public @Nullable Long getShutdownTimeoutMillis() {
return shutdownTimeoutMillis;
}
public void setShutdownTimeoutMillis(final @Nullable Long shutdownTimeoutMillis) {
this.shutdownTimeoutMillis = shutdownTimeoutMillis;
}
public @Nullable Long getSessionFlushTimeoutMillis() {
return sessionFlushTimeoutMillis;
}
public void setSessionFlushTimeoutMillis(final @Nullable Long sessionFlushTimeoutMillis) {
this.sessionFlushTimeoutMillis = sessionFlushTimeoutMillis;
}
public @Nullable List<String> getIgnoredErrors() {
return ignoredErrors;
}
public void setIgnoredErrors(final @Nullable List<String> ignoredErrors) {
this.ignoredErrors = ignoredErrors;
}
public @Nullable Boolean getSendClientReports() {
return sendClientReports;
}
public void setSendClientReports(final @Nullable Boolean sendClientReports) {
this.sendClientReports = sendClientReports;
}
public @NotNull Set<String> getBundleIds() {
return bundleIds;
}
public void addBundleId(final @NotNull String bundleId) {
bundleIds.add(bundleId);
}
public @Nullable Boolean isEnabled() {
return enabled;
}
public void setEnabled(final @Nullable Boolean enabled) {
this.enabled = enabled;
}
public @Nullable Boolean isEnablePrettySerializationOutput() {
return enablePrettySerializationOutput;
}
public void setEnablePrettySerializationOutput(
final @Nullable Boolean enablePrettySerializationOutput) {
this.enablePrettySerializationOutput = enablePrettySerializationOutput;
}
public @Nullable Boolean isSendModules() {
return sendModules;
}
public void setSendModules(final @Nullable Boolean sendModules) {
this.sendModules = sendModules;
}
public @Nullable Boolean isSendDefaultPii() {
return sendDefaultPii;
}
public void setSendDefaultPii(final @Nullable Boolean sendDefaultPii) {
this.sendDefaultPii = sendDefaultPii;
}
public @Nullable DataCollection getDataCollection() {
return dataCollection;
}
public void setDataCollection(final @Nullable DataCollection dataCollection) {
this.dataCollection = dataCollection;
}
public void setIgnoredCheckIns(final @Nullable List<String> ignoredCheckIns) {
this.ignoredCheckIns = ignoredCheckIns;
}
public @Nullable List<String> getIgnoredCheckIns() {
return ignoredCheckIns;
}
public void setIgnoredTransactions(final @Nullable List<String> ignoredTransactions) {
this.ignoredTransactions = ignoredTransactions;
}
public @Nullable List<String> getIgnoredTransactions() {
return ignoredTransactions;
}
@ApiStatus.Experimental
public void setEnableBackpressureHandling(final @Nullable Boolean enableBackpressureHandling) {
this.enableBackpressureHandling = enableBackpressureHandling;
}
@ApiStatus.Experimental
public @Nullable Boolean isEnableBackpressureHandling() {
return enableBackpressureHandling;
}
public void setEnableDatabaseTransactionTracing(
final @Nullable Boolean enableDatabaseTransactionTracing) {
this.enableDatabaseTransactionTracing = enableDatabaseTransactionTracing;
}
public @Nullable Boolean isEnableDatabaseTransactionTracing() {
return enableDatabaseTransactionTracing;
}
public void setEnableCacheTracing(final @Nullable Boolean enableCacheTracing) {
this.enableCacheTracing = enableCacheTracing;
}
public @Nullable Boolean isEnableCacheTracing() {
return enableCacheTracing;
}
public void setEnableQueueTracing(final @Nullable Boolean enableQueueTracing) {
this.enableQueueTracing = enableQueueTracing;
}
public @Nullable Boolean isEnableQueueTracing() {
return enableQueueTracing;
}
public void setGlobalHubMode(final @Nullable Boolean globalHubMode) {
this.globalHubMode = globalHubMode;
}
@ApiStatus.Experimental
public @Nullable Boolean isGlobalHubMode() {
return globalHubMode;
}
public void setForceInit(final @Nullable Boolean forceInit) {
this.forceInit = forceInit;
}
public @Nullable Boolean isForceInit() {
return forceInit;
}
public @Nullable SentryOptions.Cron getCron() {
return cron;
}
public void setCron(final @Nullable SentryOptions.Cron cron) {
this.cron = cron;
}
@ApiStatus.Experimental
public void setEnableSpotlight(final @Nullable Boolean enableSpotlight) {
this.enableSpotlight = enableSpotlight;
}
@ApiStatus.Experimental
public @Nullable Boolean isEnableSpotlight() {
return enableSpotlight;
}
@ApiStatus.Experimental
public @Nullable String getSpotlightConnectionUrl() {
return spotlightConnectionUrl;
}
@ApiStatus.Experimental
public void setSpotlightConnectionUrl(final @Nullable String spotlightConnectionUrl) {
this.spotlightConnectionUrl = spotlightConnectionUrl;
}
@ApiStatus.Experimental
public void setCaptureOpenTelemetryEvents(final @Nullable Boolean captureOpenTelemetryEvents) {
this.captureOpenTelemetryEvents = captureOpenTelemetryEvents;
}
@ApiStatus.Experimental
public @Nullable Boolean isCaptureOpenTelemetryEvents() {
return captureOpenTelemetryEvents;
}
public void setEnableLogs(final @Nullable Boolean enableLogs) {
this.enableLogs = enableLogs;
}
public @Nullable Boolean isEnableLogs() {
return enableLogs;
}
public void setEnableMetrics(final @Nullable Boolean enableMetrics) {
this.enableMetrics = enableMetrics;
}
public @Nullable Boolean isEnableMetrics() {
return enableMetrics;
}
public @Nullable Double getProfileSessionSampleRate() {
return profileSessionSampleRate;
}
public void setProfileSessionSampleRate(@Nullable Double profileSessionSampleRate) {
this.profileSessionSampleRate = profileSessionSampleRate;
}
public @Nullable String getProfilingTracesDirPath() {
return profilingTracesDirPath;
}
public void setProfilingTracesDirPath(@Nullable String profilingTracesDirPath) {
this.profilingTracesDirPath = profilingTracesDirPath;
}
public @Nullable Boolean isStrictTraceContinuation() {
return strictTraceContinuation;
}
public void setStrictTraceContinuation(final @Nullable Boolean strictTraceContinuation) {
this.strictTraceContinuation = strictTraceContinuation;
}
public @Nullable String getOrgId() {
return orgId;
}
public void setOrgId(final @Nullable String orgId) {
this.orgId = orgId;
}
public @Nullable ProfileLifecycle getProfileLifecycle() {
return profileLifecycle;
}
public void setProfileLifecycle(@Nullable ProfileLifecycle profileLifecycle) {
this.profileLifecycle = profileLifecycle;
}
}