Skip to content

Add Studio WebPro telemetry - #819

Merged
yaozheng-fang merged 2 commits into
volcengine:mainfrom
FirstayZheng:feat/studio-apmplus-telemetry
Aug 5, 2026
Merged

Add Studio WebPro telemetry#819
yaozheng-fang merged 2 commits into
volcengine:mainfrom
FirstayZheng:feat/studio-apmplus-telemetry

Conversation

@FirstayZheng

Copy link
Copy Markdown
Contributor

变更说明

本 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 维度包括 studio_deploy_iddeployer_iduser_pool_idvefaas_application_idvefaas_function_idstudio_regionstudio_projectstudio_version
  • studio_instance_loaded 外,其余用户相关事件会带 user_iduser_roleuser_source
  • Agent 部署事件带 deploy_sourcedeploy_actiondeploy_regionruntime_network_typefeishu_enabled,成功事件额外带 runtime_id,失败事件额外带 failed_phaseerror_kind
  • Sandbox 创建事件带 sandbox_kindsandbox_source,成功事件额外带 sandbox_session_id,失败事件额外带 error_kind
  • 不再上报 hash 字段,不上报 started 事件;部署和 Sandbox 创建数量按成功/失败事件的 COUNT 统计。
  • APMPlus token 不内置在代码中;未配置 token 时前端埋点关闭,可通过部署参数或环境变量配置。

验证

  • cd frontend && npm run build
  • cd 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

@FirstayZheng
FirstayZheng force-pushed the feat/studio-apmplus-telemetry branch 6 times, most recently from d979e60 to 119cf41 Compare August 5, 2026 10:05
@FirstayZheng
FirstayZheng force-pushed the feat/studio-apmplus-telemetry branch from 119cf41 to efef686 Compare August 5, 2026 11:22
@yaozheng-fang
yaozheng-fang merged commit b8ddd2b into volcengine:main Aug 5, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants