telemetry

package
v0.17.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server relays spans that CLI commands report over RPC to the cluster's traces collector, so a command can be traced without the operator's machine knowing where the collector is or holding its credentials.

func NewServer

func NewServer(log *slog.Logger, destination *otlpexport.Destination) *Server

NewServer returns a relay to destination. A nil destination accepts and drops spans, which is what a cluster that exports no traces should do.

func (*Server) ReportSpans

func (s *Server) ReportSpans(ctx context.Context, state *telemetry_v1alpha.TelemetryReportSpans) error

Jump to

Keyboard shortcuts

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