跳转到内容
Telemetry
对于使用 Codex 来添加分析和可观测性的团队

Codex仪表提示

一个重点提示,要求 Codex 检测产品的其余部分、验证事件并总结覆盖范围差距。

审阅者 Telemetry产品团队 . 我们检查了事件字段、建议查询和要排除的数据. 谁负责审核此页面

在存储库中重复使用相同的经过审查的指令 智能体遥测skill.md 指南.

为什么这有效
  • 提示词要求 Codex 记录产品操作、计费事件、上手步骤和应用故障。
  • 将实施与验证结合起来,以便您知道事件正在发生。
  • 针对未来的产品问题进行优化,而不仅仅是今天的仪表板。
用例证据路径

Codex instrumentation prompt:从实施到决策

完整的 codex instrumentation prompt 测量循环连接一个拥有的工作流程、一个有界事件契约、一个受控装置和一个有人可以采取行动的问题。

  1. 1

    设定边界

    生成或复制 Telemetry API 密钥。

  2. 2

    捕捉结果

    Begin with page_viewed, code_snippet_copied, integration_check_submitted and document the grain of each event.

  3. 3

    证明行数

    查询 Telemetry 中的新事件并填补剩余的空白。

  4. 4

    做出决定

    复制设置提示的用户是否可以更快地激活?

代理提示

将其粘贴到您的编码代理中

更换 YOUR_API_KEY 注册后,然后要求智能体运行产品流程并验证第一个事件。

代理提示

Codex instrumentation prompt 设置提示

text
Instrument this project with structured logs using /skill.md. Use this Telemetry API key: YOUR_API_KEY Anonymous keys support logging and synchronous SQL without signup. Claim the existing workspace at https://telemetry.sh/register with the same key before creating dashboards or alerts. If it is unclaimed, query the event to verify delivery and report which features need signup. Please: 1. Find the most important user-facing flows, background jobs, and AI/tooling workflows. 2. Add structured logging with snake_case table and field names. 3. Capture the key signals for each workflow, including status, latency, identifiers, and error context when relevant. 4. Run one real user-facing or operational flow through the instrumented application and verify its event appears 中 Telemetry. Do not use telemetry_quickstart for this milestone. 5. Run a read-only query over that real event, then create a high-level dashboard with charts and tables that summarize the most important signals in this project. 6. Tell me what you instrumented, which real flow you verified, which tables you created, and which dashboard views I should review first. Keep event payloads small and focused. Make dashboard labels and charts easy to scan.

为此提示创建 API 密钥,预览工作智能体事件,并在应用程序准备就绪时替换示例。

免费打开此设置

设置步骤

  1. 1生成或复制 Telemetry API 密钥。
  2. 2要求 Codex 在您的存储库中应用提示。
  3. 3运行重要的产品流程。
  4. 4查询 Telemetry 中的新事件并填补剩余的空白。

要捕获的事件

page_viewedcode_snippet_copiedintegration_check_submittedbilling_portal_openedalert_createdresult_exported

由此解锁的问题

  • 复制设置提示的用户是否可以更快地激活?
  • 哪些文档页面会产生注册?
  • 结账前使用了哪些产品区域?

事件模式示例

在将查询或代码片段适应生产之前,请检查行粒度、发出边界、所需类型、隐私类、示例有效负载和验证清单。

相关产品功能

继续此工作流程 告警

将经过审查的可靠性查询提升到拥有的阈值和响应工作流程中。

相关 SQL 查询示例

更多 SQL 示例

针对此工作流程中的结构化字段运行查询,检查示例结果,并将有用的答案转换为仪表板或警报。

浏览所有查询示例

下一步

创建您的智能体将使用的 API 密钥

免费计划足以运行提示、发送测试事件和查看第一个仪表板。

相关页面