exporter

package
v0.2.0 Latest Latest
Warning

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

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

Documentation

Overview

Package exporter batches spans and sends them to the runner without ever blocking the caller.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Exporter

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

Exporter queues spans and sends them in batches.

func New

func New(client runnerv1connect.TelemetryServiceClient, capacity int) *Exporter

New returns an exporter that queues up to capacity spans.

func (*Exporter) Add

func (e *Exporter) Add(s *runnerv1.Span)

Add queues s. When the queue is full, s is dropped and counted.

func (*Exporter) Run

func (e *Exporter) Run(ctx context.Context)

Run sends batches until ctx is done, then sends what is still queued and returns.

Jump to

Keyboard shortcuts

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