Skip to content

Allow tags to be configured before crash handler startup #2086

Closed

Description

@nathan-white-mojang

Tags can currently only be set after sentry_init(). This creates a window where an immediate crash or fast-fail can be captured without essential correlation tags, especially with out-of-process Native and Crashpad handlers.

Add an options API for initial scope tags so they are included in crash snapshots before handler activation and propagated to integrations such as Windows Error Reporting (WER).

Activity

  1. moved this to Waiting for: Product Owner in GitHub Issues with 👀 3on Sep 10, 2026
  2. linear-code commented on Sep 10, 2026

    @linear-code
  3. added
    Native
    Feature
    on Sep 10, 2026
  4. jpnurmi commented on Sep 11, 2026

    @jpnurmi
    Collaborator

    Thanks for the fix proposal #2087.

    We're in the process of planning for 1.0 and have been analyzing the APIs recently. Instead of adding options API for tags, specifically, I'd propose going down a slightly more generic route that would allow using the existing scope API for setting any scope data during init. This way, we could probably reduce the options API in 1.0. Let me know what you think and if you want to give it a shot.

  5. moved this from Waiting for: Product Owner to No status in GitHub Issues with 👀 3on Sep 11, 2026
  6. nathan-white-mojang commented on Sep 11, 2026

    @nathan-white-mojang
    ContributorAuthor

    Thanks for the fix proposal #2087.

    We're in the process of planning for 1.0 and have been analyzing the APIs recently. Instead of adding options API for tags, specifically, I'd propose going down a slightly more generic route that would allow using the existing scope API for setting any scope data during init. This way, we could probably reduce the options API in 1.0. Let me know what you think and if you want to give it a shot.

    Thank you for the excellent suggestion of following Cocoa SDK's initial scope configuration. I'll take a look at this today!

  7. moved this to Waiting for: Product Owner in GitHub Issues with 👀 3on Sep 11, 2026
  8. moved this from Waiting for: Product Owner to No status in GitHub Issues with 👀 3on Sep 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    FeatureNative

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions