Prompt
Need distributed tracing with OpenTelemetry support
Latest observation
Oct 28, 2026
OpenAI APIWeb search: off
Absolutely — OpenTelemetry is the standard way to add distributed tracing support, and it works well across many languages and platforms.
A good setup usually includes:
- Instrumentation in your app/services
- Trace context propagation between services
- An OpenTelemetry Collector to receive/process/export telemetry
- Backend/exporter such as Jaeger, Tempo, Honeycomb, Datadog, New Relic, etc.
Typical architecture
- Service A receives a request
- It creates a trace/span
- It propagates trace headers to Service B
- Service B continues the same trace
- Spans are exported to a tracing backend for visualization
What you need to configure
1) Instrument your application
Use the OpenTelemetry SDK for your language:
- Node.js:
@opentelemetry/sdk-node - Python:
opentelemetry-sdk - Java: OpenTelemetry Java agent or SDK
- Go:
go.opentelemetry.io/otel - .NET:
OpenTelemetry.Extensions.Hosting
2) Enable context propagation
Most commonly via W3C Trace Context headers:
traceparenttracestate
3) Export traces
Common options:
- OTLP (recommended) to OpenTelemetry Collector
- Then forward to your tracing vendor/backend
4) Configure sampling
To manage volume and cost:
always_onparent_basedtraceidratio/ probabilistic sampling
Example: OpenTelemetry Collector config
receivers:
otlp:
protocols:
grpc:
http:
processors:
batch:
exporters:
debug:
otlp:
endpoint: your-backend:4317
tls:
insecure: true
service:
pipelines:
traces:
receivers: [otlp]
processors: [batch]
exporters: [debug, otlp]
If you want to add it to an existing app
I can help with one of these:
- Add OpenTelemetry to a Node.js app
- Add OpenTelemetry to Python / Java / Go / .NET
- Set up OpenTelemetry Collector
- Instrument microservices with trace propagation
- Integrate with Jaeger / Tempo / Datadog / Honeycomb
If you tell me your language/framework and where you want to export traces, I can give you exact code and config.