Setup
Framework examples
Span detection
LangSight extracts MCP tool calls from OTLP spans by looking for:- Span name matching
mcp.*(e.g.mcp.postgres-mcp.query) - Attribute
gen_ai.tool.name(OpenAI Agents SDK / GenAI semantic conventions) - Attribute
mcp.server.name+mcp.tool.name
OTEL Collector (production)
For production, use the included OTEL Collector config:4317 (gRPC) and 4318 (HTTP), filters to MCP spans, and forwards to LangSight.