Skip to content

Commit 7a58bce

Browse files
committed
replaced scopes.getScope with scopes.getCombinedScopeView
1 parent 4b76e00 commit 7a58bce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sentry/src/main/java/io/sentry/logger/LoggerApi.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,12 +213,12 @@ private void captureLog(
213213
new SentryLogEventAttributeValue(SentryAttributeType.STRING, environment));
214214
}
215215

216-
final @Nullable SentryId replayId = scopes.getScope().getReplayId();
216+
final @Nullable SentryId replayId = scopes.getCombinedScopeView().getReplayId();
217217
if (!replayId.equals(SentryId.EMPTY_ID)) {
218218
attributes.put(
219219
"sentry.replay_id",
220220
new SentryLogEventAttributeValue(SentryAttributeType.STRING, replayId.toString()));
221-
if (scopes.getScope().getReplayType() == SentryReplayEvent.ReplayType.BUFFER) {
221+
if (scopes.getCombinedScopeView().getReplayType() == SentryReplayEvent.ReplayType.BUFFER) {
222222
attributes.put(
223223
"sentry._internal.replay_is_buffering",
224224
new SentryLogEventAttributeValue(SentryAttributeType.BOOLEAN, true));

0 commit comments

Comments
 (0)