Measure Claude Code observability and check the results
To measure claude code observability, choose one workflow and its owner. Define the events, test them with known inputs, and write a query that answers a specific question.
- 1
Choose when to log
Choose one completed application action for Claude Code to instrument.
- 2
Capture the outcome
Choose only the fields needed for the selected application action; keep private content and credentials out.
- 3
Check the stored rows
Run that action and verify its stored event with SQL. A sample event does not finish setup.
- 4
Make the decision
Review the observed event and any coverage gaps before expanding instrumentation.
Agent prompt
Paste this into your coding agent
Replace YOUR_API_KEY with your existing server-side key, or try the first-event setup without signup. Dashboards require a claimed workspace.
Claude Code observability setup prompt
Verify an authenticated Telemetry integration with one real application event using /skill.md.
Use this Telemetry API key in server-side code only: 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. Choose one completed application action and capture event_name, service, route, status, duration_ms, and release when available.
2. Do not log credentials, raw request bodies, or customer content.
3. Run that real action once and verify its event appears in the intended workspace. Do not use telemetry_quickstart for this milestone.
4. Check the delivery response and query the event to confirm the key, workspace, and table match. If delivery fails, report the response status without exposing the key.
5. Tell me which real event was verified, what the result means, and how to return to it after the next application run.Start with one real application action and verify its stored event. A sample event is only a diagnostic.
Try with your coding agentSetup steps
- 1Start without signup, or use your existing server-side API key.
- 2Choose one completed application action for Claude Code to instrument.
- 3Run that action and verify its stored event with SQL. A sample event does not finish setup.
- 4Claim the workspace to save dashboards, then review the result before shipping.
Events to capture
Questions you can answer
- Which features written by agents get used after release?
- Where are Claude Code changes creating support or reliability risk?
- Which workflows should get alerts before more automation is added?
Example event schemas
Event schemas for this workflow
Check what each event records, when to send it, and which field types it needs. Review the example payload and privacy checklist before using it in production.
user_signed_up
One accepted signup per user and account.
View schemaproduct_milestone_completed
One completed milestone per actor, account, and occurrence.
View schemaai_agent_run_completed
One terminal outcome per logical agent run.
View schemaUse these queries in Telemetry
Learn about Dashboards
Save a product or revenue query to a dashboard your team can check.
Related SQL recipes
More SQL recipes
Run the query using this workflow's event fields and check the example result. Save the result to a dashboard or set up an alert.
Calculate API error rate by route
Which API routes have the highest 5xx error rate with at least 20 requests?
Open recipeMeasure background job retry and failure rate
Which background jobs consume the most retries or still fail?
Open recipeBuild a signup-to-activation funnel in SQL
Where do new users leave before reaching first value?
Open recipeNext step
Verify one real application event
Send and query one real event without signup. Claim the workspace to save dashboards.
Related pages
AI agent telemetry and observability
Record agent runs and tool calls in Telemetry tables. Query retries, latency, cost, failures, and whether users accepted the results.
Open pageCursor Telemetry setup
Paste this prompt into Cursor to add event tables, track signup steps, and build dashboards.
Open pageCodex instrumentation prompt
Ask Codex to add product events, verify that they arrive, and report which workflows still need logging.
Open page