traces

package
v0.0.0-...-6cfc1b2 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TraceSourceFromContext

func TraceSourceFromContext(ctx context.Context) *backendmodels.TraceSource

func WithTraceSource

func WithTraceSource(ctx context.Context, traceSource *backendmodels.TraceSource) context.Context

Types

type HTTPTracesServer

type HTTPTracesServer struct {
	TraceSamplingManager *sampling.TraceSamplingManager
	// contains filtered or unexported fields
}

func CreateHTTPTracesServer

func CreateHTTPTracesServer(config *HTTPTracesServerConfig) (*HTTPTracesServer, error)

func (*HTTPTracesServer) PostTelemetry

func (*HTTPTracesServer) Start

func (s *HTTPTracesServer) Start(errChan chan struct{})

func (*HTTPTracesServer) Stop

func (s *HTTPTracesServer) Stop()

type HTTPTracesServerConfig

type HTTPTracesServerConfig struct {
	EnableTLS             bool
	Port                  int
	TLSPort               int
	TLSServerCertFilePath string
	TLSServerKeyFilePath  string
	TraceHandleFunc       HandleTraceFunc
	NewDiscoveredAPIsFunc HandleNewDiscoveredAPIs
	TraceSourceAuthFunc   TraceSourceAuthFunc
	TraceSamplingManager  *sampling.TraceSamplingManager
}

type HandleNewDiscoveredAPIs

type HandleNewDiscoveredAPIs func(ctx context.Context, hosts []string, traceSource *backendmodels.TraceSource) error

type HandleTraceFunc

type HandleTraceFunc func(ctx context.Context, trace *models.Telemetry, traceSource *backendmodels.TraceSource) error

type TraceSourceAuthFunc

type TraceSourceAuthFunc func(ctx context.Context, token string) (*backendmodels.TraceSource, error)

Jump to

Keyboard shortcuts

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