otelx

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorTypeName

func ErrorTypeName(err error) string

ErrorTypeName returns the short (unqualified) type name of err, matching Python's type(exception).__name__ for cross-SDK parity on the error.type span attribute.

func TracerFromContext

func TracerFromContext(ctx context.Context) (trace.Tracer, bool)

TracerFromContext returns the tracer stored with WithTracer.

func WithTracer

func WithTracer(ctx context.Context, tracer trace.Tracer) context.Context

WithTracer stores tracer on the context for nested middleware/tool spans.

Types

This section is empty.

Jump to

Keyboard shortcuts

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