Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ingestion): Use $os_name as fallback for $os #24184

Merged
merged 1 commit into from
Aug 6, 2024

Conversation

Twixes
Copy link
Member

@Twixes Twixes commented Aug 5, 2024

Problem

Addresses PostHog/posthog-js-lite#244: some libraries save the OS name as $os (e.g. posthog-js) and others as $os_name (e.g. posthog-react-native). Fixing this "properly" requires customers to roll out an update of our SDK, so @marandaneto and I propose also adding an $os_name →  $os aliasing layer to ingestion.

Changes

Building on #17393 to add special handling of $os_name. If $os isn't present, it's populated based on $os_name, along with $set.$os and $set_once.$initial_os.

How did you test this code?

Added a unit test.

@Twixes Twixes merged commit 7d4554a into master Aug 6, 2024
87 checks passed
@Twixes Twixes deleted the os-name-ingestion-fallback branch August 6, 2024 10:18
silentninja pushed a commit to silentninja/posthog that referenced this pull request Aug 8, 2024
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