telemetry

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package telemetry holds the span helpers sentinel's packages share, so every span records an error the same way.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorType

func ErrorType(err error) string

ErrorType names an error for exception.type: the context sentinels by name, anything else by the Go type of the innermost error in its chain.

func MarkError

func MarkError(span trace.Span, description string, err error)

MarkError sets an error status with a short, fixed description and adds an exception event that carries only the error's type. The message never goes on the span: a model provider's or a driver's error text can quote the prompt, the output or a connection string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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