change: emit the JumpStart model ID in ModelBuilder telemetry - #6234
change: emit the JumpStart model ID in ModelBuilder telemetry#6234evakravi wants to merge 3 commits into
Conversation
Record whether ModelBuilder build and deploy calls use a JumpStart model ID. This flag lets downstream analytics identify JumpStart usage. --- X-AI-Prompt: Can you add a JumpStart identity flag to ModelBuilder telemetry and raise a pull request? X-AI-Tool: claude-code
|
Claude finished @evakravi's task in 1m 8s —— View job PR Review — JumpStart telemetry flag
SummaryThe change looks clean and correct. It adds Correctness — verified against the source:
Tests: Good coverage of both Minor (non-blocking) observations — no change required:
No security or performance concerns. LGTM. ✅ |
The isJumpstartModelId flag separates JumpStart traffic from other traffic, but it does not name the model. Analytics cannot rank JumpStart models by build count or deployment count from a boolean. Add a jumpstartModelId param to the build and deploy telemetry param lists. The param emits the model ID string when the model source is a JumpStart model ID, and emits nothing for another model source. The ATTR_CALL branch of the param extractor drops a None return, so a param that has no value stays out of the beacon. --- X-AI-Prompt: Can we track the JumpStart model ID itself in telemetry instead of only a boolean flag? X-AI-Tool: claude-code
|
Claude finished @evakravi's task in 1m 7s —— View job PR Review — JumpStart telemetry flag
SummaryThe change is clean, correct, and well-tested. Beyond the flag described in the PR body, it now also emits the actual JumpStart model ID ( Correctness ✅
Tests ✅ — Good coverage: True/False for both Minor (non-blocking) observations
No security or performance concerns. LGTM. ✅ |
The model ID identifies JumpStart traffic and the exact model. The boolean param duplicates this information and adds a second field for consumers. Remove the boolean param from ModelBuilder telemetry and keep only jumpstartModelId. --- X-AI-Prompt: Can you remove the boolean flag and keep only the JumpStart model ID telemetry param? X-AI-Tool: claude-code
|
Claude finished @evakravi's task in 1m 45s —— View job PR Review — Emit JumpStart identity in ModelBuilder telemetry
SummaryThe change is correct and well-tested. It adds a
Tests ✅ — Good coverage: model-ID present/absent for both Findings1. 2. Stale PR description (non-blocking). The body describes emitting a boolean Minor / non-blocking: No security or performance concerns. Aside from the blank-line fix (which will otherwise turn CI red), this LGTM. ✅ |
Problem
ModelBuilder telemetry for
build()anddeploy()cannot identify JumpStart usage. The telemetry URL carries no JumpStart field. Analytics cannot separate JumpStart traffic or rank JumpStart models by build count and deployment count.Solution
Add a
_jumpstart_model_idhelper to thebuild()anddeploy()telemetry param lists. The helper returns the JumpStart model ID string for a JumpStart source, and returnsNonefor another source. The telemetry extractor omitsATTR_CALLparams when a helper returnsNone.JumpStart events thus carry
&x-jumpstartModelId=<model-id>, and other events carry no JumpStart param. The presence of the param identifies JumpStart traffic, and its value names the model, so one field answers the two questions.Tests
The focused command reports
36 passed. The tests cover the model ID param forbuild()anddeploy(), and confirm the omission of the param for another model source. The tests also confirm the absence of a separate boolean param. The same command reports3 failed, 38 passedbefore the model ID change.The regression command reports
100 passed, 2 skipped. The 2 skips are existing@unittest.skipmarks onTestConstructUrl.This contribution uses the repository Apache 2.0 license.