Repository navigation
Report the onboarding journey, hub-confirmed outcomes and provider flows in telemetry - #1199
Merged
railgrid-prow[bot] merged 1 commit intoNov 20, 2026
Conversation
Contributor
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mjudeikis The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Extend the opt-in console telemetry so a flow reads as a funnel: - Portal: outcome and step events for onboarding, checkout, the getting-started guide, workspace, organization and provider enable, each failure named by a fixed stage or reason label, never the message. - Hub: record organization_created, workspace_created and provider_enabled when the operation succeeds, so they also cover the CLI and the API. The browser keeps reporting failures only. - Sign-in page: POST /api/telemetry/public takes no credentials, accepts only the login and auth-callback page views and the sign_in click, and is rate-limited per address. - Providers: railgridContext.track plus portalkit providerTrack, with markers in edges, agents and app-studio. Events from an organization's own provider are dropped by the host. docs/telemetry.md lists every event and label.
mjudeikis
force-pushed
the
console-journey-telemetry
branch
from
November 19, 2026 16:21
6cfd170 to
92dc872
Compare
Contributor
Author
|
/retest |
2 similar comments
Contributor
Author
|
/retest |
Contributor
Author
|
/retest |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #1197. The console telemetry so far reports page views and a few clicks; this makes each flow a funnel, so it shows where users stop. Telemetry stays opt-in and off by default.
What changes
stage/reason/ HTTP status label, never by the error message.organization_created,workspace_createdandprovider_enabledwhen the operation succeeds, under the caller's browser address so they join the same session. They also fire for the CLI and the API. The browser no longer reports these successes, only failures.POST /api/telemetry/publictakes no credentials and accepts exactly theloginandauth-callbackpage views and thesign_inclick (method: oidc | token). Batch capped at 4 events / 2 KiB, rate-limited per address (burst 30, one per 2s); over the limit answers the same204and records nothing. Registered only when telemetry is enabled.trackonrailgridContext;portalkit/telemetry.tsexposesproviderTrack(ctx). Edges, agents and app-studio report their main flows (connect an edge, connect a model, create an agent or project, chat and runs, preview, deploy, sharing). The host stampsprovider: <name>and a bundle cannot override it.trackis a no-op.docs/telemetry.mdlists every event and label.Privacy
Every label value comes from a closed set defined in code: no resource names, prompts, model IDs or error text. Two labels rely on lists that are fixed today: edges' service
type(bundled catalog) and agents' connectiontype(hardcoded list).Testing
make fix-lint,make lint;go test ./pkg/hub/restapi/ ./pkg/hub/telemetry/vue-tsc -b,npm run build,npm test(750 pass)src/ProjectHistory.test.mjs, a file and component this PR does not touch)make verify-portalkit,verify-ui-conformance,verify-design-docs,verify-provider-contractNot exercised against a running hub or in a browser yet.
Rollout
Provider events appear only once the edges, agents and app-studio images are rebuilt and deployed, not with the hub alone.