BACK TO TEMPLATES
promptany
OpenTelemetry Instrumentation Setup Prompt
Prompt for adding OpenTelemetry traces, metrics, and context propagation to microservices.
When to use this
Add distributed tracing and metrics to your backend APIs using OpenTelemetry SDKs.
The template
Add OpenTelemetry tracing instrumentation to the `[Node.js / Python / Go / Rust]` service below. Requirements: 1. Initialize OTLP gRPC/HTTP Exporter sending traces to a collector endpoint (`OTEL_EXPORTER_OTLP_ENDPOINT`). 2. Instrument HTTP request handlers, database queries, and outgoing HTTP requests. 3. Inject W3C Trace Context headers (`traceparent`, `tracestate`) into outgoing HTTP/gRPC calls. Service Code: ```[LANGUAGE] [PASTE SERVICE CODE HERE] ```
How to use
Paste your backend service initialization code into the template.
Last verified 2026-07-26