history

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package history instruments conversation-history capabilities with OpenTelemetry.

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidConfig = errors.New("otel/history: invalid config")

Functions

This section is empty.

Types

type Middleware

type Middleware struct {
	// contains filtered or unexported fields
}

Middleware instruments history capabilities without entering a provider package or changing the wrapped operation's result.

func NewMiddleware

func NewMiddleware(config MiddlewareConfig) (Middleware, error)

func (Middleware) Conversations

func (m Middleware) Conversations(next corehistory.Lister) corehistory.Lister

Conversations instruments the optional cross-conversation listing capability without synthesizing it for stores that do not provide it.

func (Middleware) Store

Store instruments the ordinary read, write, and clear capabilities.

type MiddlewareConfig

type MiddlewareConfig struct {
	System         string
	TracerProvider trace.TracerProvider
	MeterProvider  metric.MeterProvider
}

MiddlewareConfig identifies the storage system observed by history instrumentation.

func (MiddlewareConfig) Validate

func (m MiddlewareConfig) Validate() error

Jump to

Keyboard shortcuts

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