extensiontrace

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package extensiontrace hosts minimal OpenTelemetry helpers for internal/core/extension stages without importing the full internal/infra/tracing package (which depends on internal/core and would cycle with packages such as internal/core/diag that reference extensions).

Index

Constants

View Source
const TracerScope = "github.com/matdev83/go-llm-interactive-proxy/internal/core/extensions"

TracerScope is the OpenTelemetry instrumentation scope name shared with internal/core/extensions so spans stay grouped with other extension stages when span creation lives outside that package.

Variables

This section is empty.

Functions

func StartSpan

func StartSpan(ctx context.Context, spanName string, attrs ...attribute.KeyValue) (context.Context, func(error))

StartSpan begins a span for an extension stage (lip.extension.* names). Optional attrs are applied with go.opentelemetry.io/otel/trace.Span.SetAttributes; keep them low-cardinality (stage keys, plugin IDs, small counts)—never attach raw request payloads. Call the returned end function once with the stage's terminal error; it records status and ends the span.

Types

This section is empty.

Jump to

Keyboard shortcuts

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