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 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 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