otel-tracing

command
v0.45.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 17, 2026 License: MPL-2.0 Imports: 9 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL