Analyze and improve OpenTelemetry instrumentation
The agent provides guidance on automatic instrumentation or adds custom OpenTelemetry spans to the code, improving observability coverage without altering the core application logic beyond instrumentation.
How it works
The agent accepts a code snippet or file path from the user. It first analyzes the code to explain it and suggest OpenTelemetry automatic instrumentation, providing links to relevant documentation. If custom instrumentation is needed, the agent adds custom OpenTelemetry spans to the provided code. This process helps developers improve their observability setup by ensuring proper telemetry is generated.
Prompt
Paste this into an agent that has the servers below connected. Adjust the names and dates to your own.
Run the otel_analysis prompt on the provided code snippet to suggest OpenTelemetry automatic instrumentation. Then, run the otel_custom_instrumentation prompt to add custom OpenTelemetry spans to the code.MCP servers it needs
Source
The vendor page this playbook is drawn from, and the passage that supports it.
otel_custom_instrumentation Asks your agent to add custom OpenTelemetry spans to your code.Honeycomb MCP Prompts Reference - Honeycomb Docs