Skip to content

captureException() with level 'warning' marks sessions as errored on Android but not iOS #5255

@quintasda

Description

@quintasda

SDK: @sentry/react-native@6.17.0

When using Sentry.captureException() with level: 'warning' in React Native, iOS and Android native SDKs handle session health marking inconsistently:

  • iOS: Does NOT mark session as errored - appears to filter by severity level
  • Android: DOES mark session as errored - marks all captureException() calls regardless of level

After switching from level: 'error' to level: 'warning':

iOS release data:
├─ Crash Free Rate: 99.996% (↑ 0.003%)
├─ Healthy: 93.346% (↑ 28.383%) ✅
├─ Errored: 4.174% (↓ 29.842%) ✅
└─ Abnormal: 2.476% (↑ 1.462%)

Android Release data:
├─ Crash Free Rate: 99.992% (↓ 0.002%)
├─ Healthy: 47.836% (↓ 16.055%) ❌
├─ Errored: 52.156% (↑ 16.896%) ❌
└─ Abnormal: 0% (↓ 0.843%)

Metadata

Metadata

Assignees

No one assigned
    No fields configured for issues without a type.

    Projects

    Status

    Waiting for: Product Owner

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions