{
  "id": "skl_c9ed8e72c4e5",
  "slug": "skill-opentelemetry-tracing",
  "asset_type": "skill",
  "name": "OpenTelemetry Distributed Tracing & Span Context Skill",
  "tagline": "Instrument Node.js, Edge Workers, and Python services with OpenTelemetry W3C TraceContext propagation, structured JSON logs, and OTLP collector exporters.",
  "description_md": "### Overview & Capability Scope\n**OpenTelemetry Distributed Tracing & Span Context Skill** (`skill-opentelemetry-tracing`) is a verified, portable `SKILL.md` playbook curated with **@getsentry** for Grok Bot (`x.ai/bot/`), Claude Code (`~/.claude/skills/`), and Cursor (`.cursor/skills/`).\n\nInstrument Node.js, Edge Workers, and Python services with OpenTelemetry W3C TraceContext propagation, structured JSON logs, and OTLP collector exporters.\n\n### Required Stack & Tooling\n- **Primary Stack:** OpenTelemetry, W3C TraceContext, OTLP, Observability\n- **Category:** `engineering`\n- **Source & Reference:** [https://opentelemetry.io/docs/](https://opentelemetry.io/docs/)\n\n### Quickstart Installation\nInstall this `SKILL.md` playbook directly into your agent workspace:\n```bash\nnpx lightstate install skill-opentelemetry-tracing\n```\nOr copy the complete `SKILL.md` specification below into `.cursor/skills/skill-opentelemetry-tracing/SKILL.md` or `~/.claude/skills/skill-opentelemetry-tracing/SKILL.md`.\n\n### Verification Commands\n```bash\nnpm i @opentelemetry/api @opentelemetry/sdk-node\n```\n",
  "primary_category": "engineering",
  "categories_json": "[\"engineering\", \"skills\"]",
  "tags_json": "[\"opentelemetry\", \"w3c-tracecontext\", \"otlp\", \"observability\", \"skill-md\", \"engineering\"]",
  "compatible_agents_json": "[\"grok-bot\", \"claude-code\", \"cursor\"]",
  "integrations_json": "[\"OpenTelemetry\", \"W3C TraceContext\", \"OTLP\"]",
  "includes_json": "[]",
  "safety_level": "Read-Only / Ask-First",
  "safety_summary": "Verified capability blueprint by @getsentry.",
  "share_url": "",
  "deep_link_uri": "",
  "mcp_endpoint": "",
  "mcp_transport": "http",
  "install_command": "npx lightstate install skill-opentelemetry-tracing",
  "skill_markdown": "---\nname: opentelemetry-tracing\ndescription: Instrument Node.js, Edge Workers, and Python services with OpenTelemetry W3C TraceContext propagation, structured JSON logs, and OTLP collector exporters. Use when working with OpenTelemetry, W3C TraceContext, OTLP, Observability.\ntriggers:\n  - opentelemetry tracing\n  - opentelemetry\n  - w3c tracecontext\n---\n\n# OpenTelemetry Distributed Tracing & Span Context Skill\n\n## 1. When to Use This Skill\nLoad `skill-opentelemetry-tracing` whenever an engineering or operations task involves **OpenTelemetry, W3C TraceContext, OTLP, Observability**. Specifically:\n- Instrument Node.js, Edge Workers, and Python services with OpenTelemetry W3C TraceContext propagation, structured JSON logs, and OTLP collector exporters.\n- Designing, reviewing, or debugging production configurations without guesswork or deprecated flags.\n- Running deterministic pre-flight and post-execution verification checks before reporting completion.\n\n## 2. Prerequisites & Required Environment\n- **Target Stack:** OpenTelemetry, W3C TraceContext, OTLP, Observability\n- **Permissions:** Read-only inspection by default; ask for explicit confirmation before executing destructive mutations or production deployments.\n- **Reference Repository:** `https://opentelemetry.io/docs/`\n\n## 3. Step-by-Step Execution Playbook\n1. **Context & Configuration Discovery:**\n   Inspect existing project manifests (`package.json`, `wrangler.jsonc`, schema files, or environment declarations) before proposing changes. Never overwrite existing bindings or credentials blindly.\n2. **Deterministic Implementation:**\n   Apply the canonical patterns for **OpenTelemetry**:\n   - Enforce strict schema/type validation at every external boundary.\n   - Include explicit error handling, structured logging, and idempotency keys on all mutating calls.\n   - Keep secrets in environment variables or secret stores—never hardcode tokens in source files.\n3. **Verification & Regression Gate:**\n   Run the verification commands below and inspect both exit codes and output payloads before marking the task complete.\n\n## 4. Reference Commands & CLI Workflow\n```bash\nnpm i @opentelemetry/api @opentelemetry/sdk-node\n```\n\n## 5. Edge Cases & Anti-Hallucination Guardrails\n- **Zero Unverified Claims:** Never claim a deployment, migration, or API call succeeded without inspecting the command output or HTTP status code.\n- **Rollback Readiness:** Always record the previous state or migration version so changes can be reverted cleanly if downstream health checks fail.\n",
  "starter_prompt": "Load the OpenTelemetry Distributed Tracing & Span Context Skill (skill-opentelemetry-tracing) playbook. First inspect our current configuration and codebase for OpenTelemetry, W3C TraceContext, OTLP, Observability. Then propose a concrete, step-by-step implementation plan following the skill-opentelemetry-tracing guardrails, run the non-destructive verification commands (npm i @opentelemetry/api @opentelemetry/sdk-node), and summarize any findings, risks, or required environment variables before making production changes.",
  "project_url": "https://opentelemetry.io/docs/",
  "repo_url": "https://opentelemetry.io/docs/",
  "creator_handle": "getsentry",
  "creator_name": "Sentry Engineering",
  "creator_avatar_url": null,
  "creator_url": "https://x.com/getsentry",
  "creator_platform": "x",
  "creator_cal_url": null,
  "claimed_by_user_id": null,
  "scouted_by_handle": null,
  "source_url": "https://opentelemetry.io/docs/",
  "source_tweet_id": null,
  "source_origin": "certified_builder",
  "source_posted_at": null,
  "x_likes": 292,
  "x_bookmarks": 666,
  "x_retweets": 166,
  "x_views": 4088,
  "human_upvotes": 292,
  "human_installs": 292,
  "bot_pulls": 666,
  "pulse_score": 86,
  "gravity_rank_score": 2382,
  "is_featured": 0,
  "is_verified": 1,
  "is_sponsored": 0,
  "sponsor_tier": "free",
  "sponsor_label": "",
  "sponsor_cta_url": "",
  "sponsor_expires_at": null,
  "commercial_intent_score": 0,
  "status": "active",
  "created_at": "2026-10-24T20:00:00Z",
  "updated_at": "2026-10-24T20:00:00Z",
  "verified_at": null,
  "primitive": "skill",
  "title": "OpenTelemetry Distributed Tracing & Span Context Skill",
  "description": "Instrument Node.js, Edge Workers, and Python services with OpenTelemetry W3C TraceContext propagation, structured JSON logs, and OTLP collector exporters.",
  "category": "engineering",
  "tags": "[\"opentelemetry\", \"w3c-tracecontext\", \"otlp\", \"observability\", \"skill-md\", \"engineering\"]",
  "agent_compatibility": "[\"grok-bot\", \"claude-code\", \"cursor\"]",
  "author_handle": "getsentry",
  "author_name": "Sentry Engineering",
  "author_avatar": null,
  "source_tweet_url": "https://opentelemetry.io/docs/",
  "github_url": "https://opentelemetry.io/docs/",
  "external_url": "https://opentelemetry.io/docs/",
  "upvotes_count": 292,
  "installs_count": 292
}