Skip to content

fix(onboarding): Read the SDK name from the event data - #127800

Draft
joshuarli wants to merge 1 commit into
masterfrom
fix/first-event-sdk-name
Draft

joshuarli wants to merge 1 commit into
masterfrom
fix/first-event-sdk-name

Conversation

@joshuarli

Copy link
Copy Markdown
Member

record_first_event called get_path(event, "sdk", "name") on the Event object. get_path only walks mappings and lists, and Event is neither, so it always returned None and FirstEventSentForProjectEvent.sdk_name was never populated. It now reads event.data, like the other SDK name lookups (for example sdk_crash_detection and the Seer grouping payload).

The existing onboarding tests store events without an SDK and expect sdk_name=None, so they are unaffected.

@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Oct 16, 2026
@getsantry

getsantry Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

This issue has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you remove the label Waiting for: Community, I will leave it alone ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

record_first_event called get_path on the Event object instead of event.data. Event is not a Mapping, so get_path always returned None and the first-event analytics event never carried sdk_name. It now reads event.data, as the other SDK name lookups do.
@joshuarli
joshuarli force-pushed the fix/first-event-sdk-name branch from 055f08b to e1074e5 Compare November 26, 2026 00:02

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

GitHub Team: python-typing Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant