otel

package
v0.52.0 Latest Latest
Warning

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

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

Documentation

Overview

Package otel bridges the dds.Tracer interface to an OpenTelemetry TracerProvider.

Usage:

import (
    ddsotel "github.com/SoundMatt/go-DDS/otel"
    "github.com/SoundMatt/go-DDS/rtps"
    "go.opentelemetry.io/otel"
)

p, err := rtps.New(dds.Domain(0),
    rtps.WithTracer(ddsotel.NewTracer(otel.GetTracerProvider())),
)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTracer

func NewTracer(tp oteltrace.TracerProvider) dds.Tracer

NewTracer wraps an OpenTelemetry TracerProvider as a dds.Tracer. Pass otel.GetTracerProvider() to use the globally-registered provider.

Types

This section is empty.

Jump to

Keyboard shortcuts

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