Skip to content

Commit 7c94ee8

Browse files
committed
Initialize RRWebOptionsEvent#networkDetailHasUrls based on SentryReplayOptions
networkDetailHasUrls is a gate that the front-end uses to determine whether there is data to show the end-user https://github.com/getsentry/sentry-javascript/blob/090a3e35a94014aad4dfd06a6ff3c361f0420009/packages/replay-internal/src/util/handleRecordingEmit.ts#L134
1 parent 7232cfa commit 7c94ee8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sentry/src/main/java/io/sentry/rrweb/RRWebOptionsEvent.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ public RRWebOptionsEvent(final @NotNull SentryOptions options) {
5959
? "pixelCopy"
6060
: "canvas";
6161
optionsPayload.put("screenshotStrategy", screenshotStrategy);
62+
optionsPayload.put("networkDetailHasUrls", replayOptions.getNetworkDetailAllowUrls().length > 0);
6263
}
6364

6465
@NotNull

0 commit comments

Comments
 (0)