export

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package export delivers completed telemetry scopes to host-owned sinks. The Pi-compatible recorder owns span lifecycle and parentage; export only supplies timing and a passive delivery boundary.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(sink func(Batch)) telemetry.Context

New records one isolated batch per root callback. Child spans share its recorder. The host must join child work before the root callback returns. Sink failures never alter the callback's value, error, or panic.

Types

type Batch

type Batch struct {
	StartedAt   time.Time                `json:"started_at"`
	Duration    time.Duration            `json:"duration_ns"`
	Spans       []telemetry.RecordedSpan `json:"spans"`
	SpanTimings []telemetry.SpanTiming   `json:"span_timings,omitempty"`
}

Jump to

Keyboard shortcuts

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