Open app
Concepts
On this page

OpenTelemetry

Telemetry is authenticated. It records that a skill version ran, for how long, at what cost, and whether it failed. It does not accept prompt text or file contents.

Both routes require a bearer token and are rate limited per user. The default is 300 requests an hour. TELEMETRY_RATE_LIMIT_PER_HOUR overrides it. A request may contain at most 100 events or spans.

JSON events#

POST /api/v1/telemetry/events takes one object or an array. The server validates every event before it writes any.

event.json
{
  "skillNamespace": "@payments",
  "skillName": "deploy",
  "skillVersion": "2.3.1",
  "sessionId": "sess_123",
  "invocationType": "agent",
  "durationMs": 840,
  "costDollars": 0.02,
  "source": "agent"
}

invocationType is agent or user. source is mcp, cli, api, web, or agent. errorType is optional. userId on the body is ignored for attribution: the server stores the authenticated user. Events are kept only when that user can see the skill. Others are ignored.

OTLP spans#

On the hosted app, send OTLP to these paths. JSON and protobuf (Content-Type: application/x-protobuf or application/protobuf) are both accepted:

  • POST https://app.skillsplayground.com/v1/traces
  • POST https://app.skillsplayground.com/v1/metrics
  • POST https://app.skillsplayground.com/v1/logs

POST /api/v1/telemetry/otlp is the older traces alias. A JSON body there answers { received: true, recorded }. It reads OTLP resourceSpans. A span counts only when attribute gen_ai.operation.name is skill.invocation.

AttributeMaps to
skill.namespaceNamespace
skill.nameSkill name
skill.versionVersion
skill.invocation_typeagent or user. Default agent.
session.idSession. Falls back to the span trace id.
error.typeSet when the span status code is 2 (error).

Duration is endTimeUnixNano minus startTimeUnixNano. Source is stored as agent. There is no bundled agent hook yet. You send the span from your own tracer.

Collector#

Point an OpenTelemetry Collector otlphttp exporter at the hosted origin. The exporter posts traces to /v1/traces. The header is Authorization: Bearer plus a token from Account settings. JSON is the default. Set encoding: proto if you send protobuf. A span is stored only when gen_ai.operation.name is skill.invocation.

collector.yaml
exporters:
  otlphttp:
    endpoint: https://app.skillsplayground.com
    headers:
      Authorization: "Bearer ${SKILLS_TOKEN}"
service:
  pipelines:
    traces:
      receivers: [otlp]
      exporters: [otlphttp]

Keep the token in the collector environment. Do not commit it. The same bearer works for POST /v1/metrics and POST /v1/logs, and for the older alias POST /api/v1/telemetry/otlp.

Limits#

Timestamps more than 7 days old, or more than 5 minutes in the future, are clamped to now. The response is { received, ignored } for events and { received: true, recorded } for OTLP.

What counts as a use#

  • MCP read_skill and resources/read: mcp
  • CLI install and sync downloads: cli
  • Other bundle downloads: api
  • Copy markdown on the web: web
  • Events you post: the source you set, or agent for OTLP

A failed event, including a failed CLI install, is not a use. Viewing a skill page is not a use. skills usage @namespace --days 90 and GET /api/v1/metrics/namespace/@namespace read the same numbers. Team members see that report. --unused lists skills with no use in the window.

Privacy#

The event schema has no field for prompt text, file contents, or model output. Do not put those in errorType or sessionId. Papercuts are a separate short description via report_papercut, not a transcript. See Privacy.

Skills PlaygroundHome · Docs · Pricing · Terms · Privacy