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 (s *HTTPTracesServer) PostTelemetry(params operations.PostTelemetryParams) middleware.Responder
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)
Click to show internal directories.
Click to hide internal directories.