Skip to content

Use native setter for event level on desktop and consoles - #1577

Merged
tustanivsky merged 1 commit into
mainfrom
ref/native-event-set-level
Sep 10, 2026
Merged

Use native setter for event level on desktop and consoles#1577
tustanivsky merged 1 commit into
mainfrom
ref/native-event-set-level

Conversation

@tustanivsky

@tustanivsky tustanivsky commented Sep 10, 2026

Copy link
Copy Markdown
Collaborator

This PR replaces the manual "level" protocol field write in FGenericPlatformSentryEvent::SetLevel with the dedicated sentry_event_set_level API added in sentry-native 0.16.6 via getsentry/sentry-native#2038.

Previously the level was assigned by converting ESentryLevel to its lowercased enum name and setting the "level" key on the event value directly. The new API does exactly that internally, so behavior is unchanged and the protocol detail now lives in sentry-native instead of the plugin. The conversion still goes through the existing SentryLevelToNative converter.

Apple and Android are unaffected; they already set the level through per-event native APIs.

#skip-changelog

sentry-native 0.16.6 adds a per-event level setter, so the protocol
"level" field no longer has to be written by hand.
@tustanivsky tustanivsky changed the title Use sentry_event_set_level to set the event level Use native setter for the event level Sep 10, 2026
@tustanivsky tustanivsky changed the title Use native setter for the event level Use native setter for event level Sep 10, 2026
@tustanivsky tustanivsky changed the title Use native setter for event level Use native setter for event level on desktop and consoles Sep 10, 2026
@tustanivsky tustanivsky changed the title Use native setter for event level on desktop and consoles Use native setter for event level (desktop and consoles) Sep 10, 2026
@tustanivsky tustanivsky changed the title Use native setter for event level (desktop and consoles) Use native setter for event level on desktop and consoles Sep 10, 2026
@tustanivsky
tustanivsky merged commit 2cfef61 into main Sep 10, 2026
67 checks passed
@tustanivsky
tustanivsky deleted the ref/native-event-set-level branch September 10, 2026 08:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants