Help us shape the future of Go! Take the 2026 Go Developer Survey

adk

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package adk owns the optional, local ADK observability lifecycle.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metric

type Metric struct {
	Stage    app.Stage
	Status   app.Status
	Count    int
	Duration time.Duration
}

Metric has a closed schema and contains only aggregate count and duration.

type Runtime

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

Runtime owns local telemetry providers. It does not set global providers or configure an exporter, so constructing it cannot send source or secret data.

func New

func New() *Runtime

New creates providers without exporters or global registration.

func (*Runtime) Observe

func (r *Runtime) Observe(stage app.Stage, status app.Status, count int, duration time.Duration)

Observe records fixed local dimensions. Unknown values are discarded rather than becoming telemetry attributes.

func (*Runtime) Shutdown

func (r *Runtime) Shutdown(ctx context.Context) error

Shutdown releases the ADK telemetry providers.

func (*Runtime) Snapshot

func (r *Runtime) Snapshot() []Metric

func (*Runtime) Tracer

func (r *Runtime) Tracer() trace.Tracer

Tracer provides local instrumentation to later adapters. Callers must only record safe metadata; core decisions and source text do not enter ADK.

Jump to

Keyboard shortcuts

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