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
Click to show internal directories.
Click to hide internal directories.