Skip to content

[1.2] Telemetry: every PostHog event says its environment (debug, testflight or appstore) - #1264

Merged
Skeyelab merged 1 commit into
release/1.2from
telemetry-posthog-environment-1.2
Nov 23, 2026
Merged

Skeyelab merged 1 commit into
release/1.2from
telemetry-posthog-environment-1.2

Conversation

@Skeyelab

Copy link
Copy Markdown
Member

Cherry-pick of #1263 (squash commit c6e6058) onto release/1.2, so the next 1.2 patch build's usage events say which build sent them. App Store 1.2.14's events mix with TestFlight 1.2.14's in PostHog today.

PostHogSink takes the environment name SentrySink already gets (debug, testflight or appstore) and puts it on every usage event as environment. ADR 0007 and the privacy page list it. No new data type, so PrivacyInfo.xcprivacy and the App Store label don't change.

The cherry-pick applied cleanly. On this branch VERIFY_QUICK=1 ./scripts/verify.sh passed (spelling, vocabulary, package tests, site); CI runs the app builds. Red and green runs are in #1263: red was a compile error (extra argument 'environment' in call), green was all TelemetrySinksTests passing.

Checked by tests only, not on a device. No tag.

Assisted-by: Claude Code

…t or appstore) (#1263)

* Telemetry: every PostHog event says its environment (debug, testflight or appstore)

PostHogSink now takes the same environment name SentrySink gets and puts it
on every usage event as `environment`, so App Store events can be told from
TestFlight and Debug ones. ADR 0007 and the privacy page list it.

Assisted-by: Claude Code

* Website: page dates for the privacy page change

Assisted-by: Claude Code

* Telemetry: test the app's PostHogSink init, for codecov/patch

Assisted-by: Claude Code
(cherry picked from commit c6e6058)
@Skeyelab
Skeyelab merged commit e6d8500 into release/1.2 Nov 23, 2026
1 check passed
@codecov

codecov Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 83.33333% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
App/AppTelemetry.swift 0.00% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

Skeyelab added a commit that referenced this pull request Nov 24, 2026
…1265)

v1.2.15 adds the distribution environment to usage events (#1263, #1264).
The changelog marks 1.2.14 as the App Store version (live 2026-11-23).

Assisted-by: Claude Code
Skeyelab added a commit that referenced this pull request Nov 24, 2026
…1266)

v1.2.15 adds the distribution environment to usage events (#1263, #1264).
The changelog marks 1.2.14 as the App Store version (live 2026-11-23).

Assisted-by: Claude Code
Skeyelab added a commit that referenced this pull request Nov 24, 2026
…1265)

v1.2.15 adds the distribution environment to usage events (#1263, #1264).
The changelog marks 1.2.14 as the App Store version (live 2026-11-23).

Assisted-by: Claude Code
(cherry picked from commit 17b0bc2)
Skeyelab added a commit that referenced this pull request Nov 24, 2026
…1265) (#1267)

v1.2.15 adds the distribution environment to usage events (#1263, #1264).
The changelog marks 1.2.14 as the App Store version (live 2026-11-23).

Assisted-by: Claude Code
(cherry picked from commit 17b0bc2)
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.

1 participant