Skip to content

Commit 955d0fc

Browse files
runningcodeclaude
andauthored
fix(samples): Use float literal for session-replay sample rate (#5764)
The Android sample manifest set io.sentry.session-replay.session-sample-rate to the integer literal "1", which aapt stores as an int. ManifestMetadataReader reads it via Bundle.getFloat, which does not coerce an int-typed value and logs a framework warning before falling back to getInt on startup. Using the float literal "1.0" stores it as a float so getFloat succeeds and no warning is logged. Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 0b8ad15 commit 955d0fc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sentry-samples/sentry-samples-android/src/main/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@
271271
android:value="canvas" />
272272
<meta-data
273273
android:name="io.sentry.session-replay.session-sample-rate"
274-
android:value="1" />
274+
android:value="1.0" />
275275
<meta-data
276276
android:name="io.sentry.session-replay.mask-all-text"
277277
android:value="true" />

0 commit comments

Comments
 (0)