Skip to content

Commit fa9aaa4

Browse files
SentryOptions#merge is now public and can be used to load ExternalOptions (#2088)
* Make SentryOptions.merge public * Add changelog * Update CHANGELOG.md Co-authored-by: Manoel Aranda Neto <[email protected]> Co-authored-by: Manoel Aranda Neto <[email protected]>
1 parent 2ae42b8 commit fa9aaa4

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
### Features
66

77
- Implement local scope by adding overloads to the capture methods that accept a ScopeCallback ([#2084](https://github.com/getsentry/sentry-java/pull/2084))
8+
- SentryOptions#merge is now public and can be used to load ExternalOptions ([#2088](https://github.com/getsentry/sentry-java/pull/2088))
89

910
### Fixes
1011

sentry/api/sentry.api

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1240,6 +1240,7 @@ public class io/sentry/SentryOptions {
12401240
public fun isSendDefaultPii ()Z
12411241
public fun isTraceSampling ()Z
12421242
public fun isTracingEnabled ()Z
1243+
public fun merge (Lio/sentry/ExternalOptions;)V
12431244
public fun setAttachServerName (Z)V
12441245
public fun setAttachStacktrace (Z)V
12451246
public fun setAttachThreads (Z)V

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1710,7 +1710,7 @@ private SentryOptions(final boolean empty) {
17101710
*
17111711
* @param options options loaded from external locations
17121712
*/
1713-
void merge(final @NotNull ExternalOptions options) {
1713+
public void merge(final @NotNull ExternalOptions options) {
17141714
if (options.getDsn() != null) {
17151715
setDsn(options.getDsn());
17161716
}

0 commit comments

Comments
 (0)