Skip to content

feat: log telemetry for low/depleted CCU balance notifications#578

Merged
kevineger merged 4 commits into
mainfrom
keger/telem-low-ccu-notification
Apr 29, 2026
Merged

feat: log telemetry for low/depleted CCU balance notifications#578
kevineger merged 4 commits into
mainfrom
keger/telem-low-ccu-notification

Conversation

@kevineger

@kevineger kevineger commented Apr 23, 2026

Copy link
Copy Markdown
Member

Captures the severity of the notification (SEVERITY_LOW warning or
SEVERITY_DEPLETED error), the user's subscription tier, and whether the user
clicked the call-to-action (vs. dismissed the notification).

The event is logged after the notification's promise resolves so the
clicked_action outcome is captured. Pairs with upgrade_to_pro_event to
enable funnel analysis from notification to upgrade.

telemetry.logLowCcuNotification accepts the Colab-level SubscriptionTier
directly and converts it to the proto-shaped top-level SubscriptionTier enum
internally, keeping callers free of the conversion.

Proto changes: cl/903985928

@hjjackyang hjjackyang left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similar test-related comments as other PRs, but I have a stronger opinion to change these ones given the confusing test names and loop logic inside the test, hence requested changes.

Comment thread src/colab/consumption/notifier.unit.test.ts Outdated
Comment thread src/telemetry/telemetry.unit.test.ts Outdated
@kevineger kevineger force-pushed the keger/telem-low-ccu-notification branch from 506073f to 846d760 Compare April 29, 2026 17:09
@kevineger kevineger requested a review from hjjackyang April 29, 2026 18:25
Captures the severity of the notification (`SEVERITY_LOW` warning or
`SEVERITY_DEPLETED` error), the user's subscription tier, and
whether the user clicked the call-to-action (vs. dismissed the
notification).

The event is logged after the notification's promise resolves so the
`clicked_action` outcome is captured. Pairs with
`upgrade_to_pro_event` to enable funnel analysis from notification
to upgrade.

`telemetry.logLowCcuNotification` accepts the Colab-level
`SubscriptionTier` directly and converts it to the proto-shaped
top-level `SubscriptionTier` enum internally, keeping callers free
of the conversion.
@kevineger kevineger force-pushed the keger/telem-low-ccu-notification branch from 8dc8122 to 9b8c4a7 Compare April 29, 2026 20:26
@kevineger kevineger merged commit 2a674b3 into main Apr 29, 2026
10 checks passed
@kevineger kevineger deleted the keger/telem-low-ccu-notification branch April 29, 2026 20:46
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.

2 participants