otel

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Sink

func Sink(options ...Option) partial.EventSink

Sink returns a diagnostic event consumer that adds go-partial events to the active span.

The sink does not create spans, tracer providers, exporters, or samplers. Applications should create spans in their own HTTP middleware and render with that request context.

Types

type Option

type Option func(*config)

Option configures the OpenTelemetry event sink.

func WithAttributePrefix

func WithAttributePrefix(prefix string) Option

WithAttributePrefix changes the attribute key prefix used by Sink. Pass an empty string when attributes should not be prefixed.

func WithMinLevel

func WithMinLevel(level partial.EventLevel) Option

WithMinLevel ignores events below level.

Jump to

Keyboard shortcuts

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