跳至主要內容
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 金鑰

免費計劃足以執行提示、傳送測試事件和檢視第一個儀表板。

相關頁面