Telemetry tells skill owners which versions run, how often, how fast, at what cost and how often they fail. Events are sent by your agent harness or a hook you write; Skills Playground does not ship an agent hook yet.
What is stored
| Field | Notes |
|---|---|
skillNamespace, skillName, skillVersion |
Which skill and version ran. |
invocationType |
agent if the agent chose the skill, user if a person invoked it. |
sessionId |
Your session identifier. |
userId |
The authenticated user if you send a token. Otherwise the userId you send, or anonymous. Send a hash, not an email. |
durationMs |
How long the invocation took. |
costDollars |
Cost you attribute to the invocation. |
errorType |
A short error class, such as timeout. |
timestamp |
Defaults to the time the server received it. |
What is never stored
Prompt text, model output and file contents. The event schema has no fields for them, and the server drops any extra fields before saving. In testing, an event carrying fake prompt and file text was accepted and neither string was found in the database.
Send JSON events
curl -X POST http://localhost:3000/api/v1/telemetry/events \
-H "Content-Type: application/json" \
-d '{
"skillNamespace": "@payments",
"skillName": "deploy",
"skillVersion": "2.3.1",
"sessionId": "sess_123",
"invocationType": "agent",
"durationMs": 840,
"costDollars": 0.004
}'
You can send one event or an array. Authentication is optional; with a Bearer token the event is tied to your user.
Send OpenTelemetry spans
POST /api/v1/telemetry/otlp accepts OTLP/HTTP JSON. Spans with gen_ai.operation.name = skill.invocation are recorded; others are ignored.
const span = tracer.startSpan('skill.invocation', {
attributes: {
'gen_ai.operation.name': 'skill.invocation',
'skill.namespace': '@payments',
'skill.name': 'deploy',
'skill.version': '2.3.1',
'skill.invocation_type': 'agent',
'session.id': sessionId,
},
});
Duration comes from the span's start and end time. A span with error status records error.type.
Metrics
curl "http://localhost:3000/api/v1/metrics/@payments/deploy?days=30"
curl "http://localhost:3000/api/v1/metrics/top?limit=10"
Per skill, and optionally per version, over a window (30 days by default): invocations, unique users, error rate, average duration, total cost and retention. Search ranks results by invocation count.
Papercuts
Agents can file a bug report against a skill with the MCP report_papercut tool. It stores the skill, optional version and a description for the owner.