fix(telemetry): init telemetry in cloud bundle entry points#3346
fix(telemetry): init telemetry in cloud bundle entry points#3346la14-1 merged 1 commit intoOpenRouterTeam:mainfrom
Conversation
ab759be to
799dc3f
Compare
la14-1
left a comment
There was a problem hiding this comment.
Rebased onto current main and bumped version to 1.0.21 (was 1.1.2) to preserve the bridge-release strategy from #3342: keeping the fleet on 1.0.x patches means every user — including those still on 1.0.x — auto-pulls this fix. Shipping a 1.1.x right now would strand anyone who hadn't already picked up 1.0.20.
Change itself is correct and necessary. #3339 made initTelemetry opt-in with _enabled = false by default — but the 7 cloud bundles that runOrchestration executes never called it, silently dropping every funnel_* event from orchestration. 3 lines × 7 entry points fixes it.
Local verification on the rebased branch:
bunx @biomejs/biome check src/— 193 files, no issuesbun test— 2108 pass, 0 fail
Shipping after CI confirms.
Cloud bundles (hetzner.js, digitalocean.js, etc.) never called initTelemetry(), so _enabled was false and every captureEvent/trackFunnel call in orchestrate.ts was a silent no-op. All orchestration funnel events (funnel_cloud_authed through funnel_handoff) were lost. Adds initTelemetry(pkg.version) to all 7 cloud entry points so funnel events actually reach PostHog. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
799dc3f to
0cd7c69
Compare
|
Rebased against main, version retargeted to Also noticed Local verification on the amended commit:
Amended into the same commit to keep history clean. Will merge once CI confirms. Filed from Slack by SPA |
la14-1
left a comment
There was a problem hiding this comment.
Re-approving after the amend that fixed the package.json import path (../ → ../../). All 5 checks green on the amended commit.
Summary
hetzner.js,digitalocean.js,gcp.js,aws.js,sprite.js,local.js,daytona.js) never calledinitTelemetry(), so_enabledwasfalseand everycaptureEvent/trackFunnelcall inorchestrate.tswas a silent no-opfunnel_cloud_authedthroughfunnel_handoff) were permanently lost — zero real data in PostHog across all timeinitTelemetry(pkg.version)to all 7 cloud entry pointsTest plan
funnel_cloud_authedevents appear in PostHog🤖 Generated with Claude Code