File tree Expand file tree Collapse file tree 3 files changed +10
-1
lines changed
main/java/io/sentry/rrweb Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 66
77- Fallback to distinct-id as user.id logging attribute when user is not set ([#4847](https://github.com/getsentry/sentry-java/pull/4847))
88- Report Timber.tag() as `timber.tag` log attribute ([#4845](https://github.com/getsentry/sentry-java/pull/4845))
9+ - Session Replay: Add screenshot strategy serialization to RRWeb events ([#4851](https://github.com/getsentry/sentry-java/pull/4851))
910
1011## 8.25.0
1112
Original file line number Diff line number Diff line change 66import io .sentry .JsonUnknown ;
77import io .sentry .ObjectReader ;
88import io .sentry .ObjectWriter ;
9+ import io .sentry .ScreenshotStrategyType ;
910import io .sentry .SentryOptions ;
1011import io .sentry .SentryReplayOptions ;
1112import io .sentry .protocol .SdkVersion ;
@@ -52,6 +53,12 @@ public RRWebOptionsEvent(final @NotNull SentryOptions options) {
5253 optionsPayload .put ("quality" , replayOptions .getQuality ().serializedName ());
5354 optionsPayload .put ("maskedViewClasses" , replayOptions .getMaskViewClasses ());
5455 optionsPayload .put ("unmaskedViewClasses" , replayOptions .getUnmaskViewClasses ());
56+
57+ final String screenshotStrategy =
58+ (replayOptions .getScreenshotStrategy () == ScreenshotStrategyType .PIXEL_COPY )
59+ ? "pixelCopy"
60+ : "canvas" ;
61+ optionsPayload .put ("screenshotStrategy" , screenshotStrategy );
5562 }
5663
5764 @ NotNull
Original file line number Diff line number Diff line change 1212 "maskedViewClasses" : [],
1313 "nativeSdkName" : " sentry.java" ,
1414 "sessionSampleRate" : 0.5 ,
15- "quality" : " low"
15+ "quality" : " low" ,
16+ "screenshotStrategy" : " pixelCopy"
1617 }
1718 }
1819}
You can’t perform that action at this time.
0 commit comments