Add Studio WebPro telemetry - #819
Merged
yaozheng-fang merged 2 commits intoAug 5, 2026
Merged
Conversation
FirstayZheng
force-pushed
the
feat/studio-apmplus-telemetry
branch
6 times, most recently
from
August 5, 2026 10:05
d979e60 to
119cf41
Compare
yaozheng-fang
approved these changes
Aug 5, 2026
FirstayZheng
force-pushed
the
feat/studio-apmplus-telemetry
branch
from
August 5, 2026 11:22
119cf41 to
efef686
Compare
yaozheng-fang
approved these changes
Aug 5, 2026
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.
变更说明
本 PR 为 Studio 接入 WebPro/APMPlus 前端自定义埋点,用于在看板里统计 Studio 实例访问、登录用户、Agent 部署结果和 Sandbox 创建结果。
新增/调整的埋点事件:
studio_instance_loaded:前端读取/web/ui-config后上报,用于统计被访问过的 Studio 实例、用户池覆盖和页面加载量;不包含user_id。studio_user_authenticated:/web/access返回登录用户身份后上报,用于统计登录用户数和角色分布。studio_agent_deploy_succeeded:用户确认部署且 Agent Runtime 部署成功后上报。studio_agent_deploy_failed:用户确认部署后出现非取消异常时上报。studio_sandbox_create_succeeded:用户确认创建 Sandbox 且 Session 创建成功后上报。studio_sandbox_create_failed:用户确认创建 Sandbox 后出现非取消异常时上报。字段和口径:
studio_deploy_id、deployer_id、user_pool_id、vefaas_application_id、vefaas_function_id、studio_region、studio_project、studio_version。studio_instance_loaded外,其余用户相关事件会带user_id、user_role、user_source。deploy_source、deploy_action、deploy_region、runtime_network_type、feishu_enabled,成功事件额外带runtime_id,失败事件额外带failed_phase、error_kind。sandbox_kind、sandbox_source,成功事件额外带sandbox_session_id,失败事件额外带error_kind。COUNT统计。验证
cd frontend && npm run buildcd frontend && npm test -- --runInBand:385 passed.venv/bin/pre-commit run --all-files.venv/bin/python -m pytest tests/cli/test_frontend_runtime_proxy.py tests/cli/test_studio_deploy_target.py tests/cli/test_studio_rbac.py:81 passed