-
[OPIK-6026] [BE] Onboarding analytics events (#6333)
发布于
2026-04-16 15:46:06 +00:00 - [OPIK-6026] [BE] feat: add onboarding analytics events
Add BI events for the onboarding funnel so we can track user activation
in PostHog via Segment:- opik_project_created: fired when a project is created
- opik_connect_started: fired when a pairing session is created
- opik_connect_succeeded / opik_connect_failed: fired on activation
- opik_first_trace_created: fired on first trace per workspace
AnalyticsService now resolves user identity from RequestContext when
available (request thread) and accepts an explicit identity parameter
for async contexts (EventBus listeners). This ensures all events carry
a per-user anonymous_id for funnel correlation in PostHog.-
fix: extract getNonDemoProjectIds and reuse in analytics path
-
fix: use class name instead of raw message in connect_failed error property
下载附件