otlpexporter

package
v0.0.14-rc.1 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2026 License: MIT Imports: 12 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package otlpexporter sends sanitized Runtime observation records to an operator-configured OTLP/HTTP metrics endpoint. It is optional history transport, not Runtime execution or lifecycle authority.

Index

Constants

View Source
const (
	CPUUsageName       = "agents.runtime.cpu.usage"
	CPUCapacityName    = "agents.runtime.cpu.capacity"
	CPUUtilizationName = "agents.runtime.cpu.utilization"
	MemoryUsageName    = "agents.runtime.memory.usage"
	MemoryLimitName    = "agents.runtime.memory.limit"
	SampleName         = "agents.runtime.sample"
	SampleDurationName = "agents.runtime.sample.duration"
	TokenInputName     = "agents.session.tokens.input"
	TokenOutputName    = "agents.session.tokens.output"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Endpoint       string
	Headers        map[string]string
	Insecure       bool
	RequestTimeout time.Duration
}

type Exporter

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

func New

func New(ctx context.Context, config Config) (*Exporter, error)

func (*Exporter) Close

func (e *Exporter) Close(ctx context.Context) error

func (*Exporter) Export

func (e *Exporter) Export(ctx context.Context, record runtimeobs.ExportRecord) error

Jump to

Keyboard shortcuts

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