vectorstore

package
v0.21.0 Latest Latest
Warning

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

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

Documentation

Overview

Package vectorstore instruments Core vector-store capabilities with OpenTelemetry.

Index

Constants

This section is empty.

Variables

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

Functions

This section is empty.

Types

type Middleware

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

Middleware instruments vector-store capabilities without changing the capability set of the wrapped value.

func NewMiddleware

func NewMiddleware(config MiddlewareConfig) (Middleware, error)

NewMiddleware fixes instrument identity and provider binding once so index and search operations contribute to stable telemetry series.

func (Middleware) DeleteIDs

DeleteIDs instruments only the corevectorstore.IDDeleter capability.

func (Middleware) DeleteWhere

DeleteWhere instruments only the corevectorstore.FilterDeleter capability.

func (Middleware) Index

Index instruments only the corevectorstore.Indexer capability.

func (Middleware) Search

Search instruments only the corevectorstore.Searcher capability.

type MiddlewareConfig

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

MiddlewareConfig identifies the database observed by vector-store instrumentation. System is the OpenTelemetry db.system.name value. Collection and Namespace identify the provider-native storage target.

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