Take an OpenSearch search application from requirements to a running cluster — BM25, dense and sparse vectors, hybrid retrieval, agentic search and RAG, with relevance evaluation built in.
OpenSearch Trace Analytics
Summary
Investigate OpenTelemetry traces stored in OpenSearch — slow and error spans, reconstructed trace trees, service maps, plus agent invocation and token-usage analysis.
Features
- Finds slow and error spans and reconstructs trace trees from a trace ID
- Service-map queries for understanding cross-service latency
- Agent invocation tracking and LLM token-usage measurement from trace data
- PPL and Query DSL over OTel span indices such as otel-v1-apm-span-*
- Optional opensearch-mcp-server access with SigV4 for AOS/AOSS
Install This Skill
Add this skill to your favorite AI agent in a few steps.
Skill Content
Usage Instructions
Learn how to use this skill with different AI agents.
Description
Distributed tracing data answers latency questions precisely, provided somebody can write the query. This official OpenSearch Project skill gives an agent that ability over OTel trace data indexed in OpenSearch, typically in otel-v1-apm-span-*.
The skill covers the investigative moves a performance debugging session actually needs: finding the slow spans inside a trace, isolating error spans, reconstructing a full trace tree from a trace ID, and querying the service map to understand which dependency is dragging a request down. Notably for teams running LLM systems, it also handles agent invocation tracking and token-usage measurement from trace data — a use case most tracing tooling has not caught up with.
Like its sibling log-analytics skill, it activates broadly: traceId, spanId, OpenTelemetry, OTel, distributed tracing, latency, span duration, service map and trace investigation all wake it up without OpenSearch being mentioned.
It needs a running OpenSearch cluster holding OTel trace data and the built-in SQL plugin for PPL queries, plus uv for the helper scripts. Adding opensearch-mcp-server-py is optional and gives direct API access including PPL through GenericOpenSearchApiTool, with SigV4 handled transparently for Amazon OpenSearch Service and Serverless.
Apache 2.0 licensed, published by the OpenSearch Project, and compatible with Claude Code, Cursor, Kiro and any agent supporting the Agent Skills standard.
Related Skills
Auth0's official agent skill: a router that detects your framework and intent, then loads the right Auth0 guidance for login, MFA, Organizations, tenant audits, debugging or provider migration.
Redis' own guidance for FT.CREATE schema design, FT.SEARCH / FT.AGGREGATE / FT.HYBRID, HNSW vector similarity and RAG retrieval pipelines.
Supabase's official skill covering Database, Auth, Edge Functions, Realtime, Storage, Vectors, Cron and Queues — with a hard rule to verify against the live changelog before writing code.