Documentation
¶
Overview ¶
Command otel-tracing demonstrates the OpenTelemetry adapter for go-DDS.
The otel package wraps any OpenTelemetry TracerProvider as a dds.Tracer. Pass it to rtps.WithTracer (or auto.WithRTPSOpts) to get OTLP spans on every publish/receive call.
This example uses a stdout OTLP exporter so you can see traces without an external collector. In production, replace it with an OTLP gRPC/HTTP exporter pointing at your collector.
Run:
go run ./examples/otel-tracing
Click to show internal directories.
Click to hide internal directories.