tracing

package
v0.2.9 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2024 License: BSD-3-Clause-Clear Imports: 15 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(ctx context.Context, spanName string, opts ...trace.SpanStartOption) (context.Context, trace.Span)

func Tracer

func Tracer() trace.Tracer

Types

type GetClientCertificate

type GetClientCertificate func(*tls.CertificateRequestInfo) (*tls.Certificate, error)

type TpShutdownFunc

type TpShutdownFunc func(ctx context.Context) error

func InitTracer

func InitTracer(ctx context.Context, cfg *TracerConfig) (TpShutdownFunc, error)

type TracerConfig

type TracerConfig struct {
	ServiceName string
	Environment string
	Endpoint    string
	EndpointURL string

	CertificateProvider GetClientCertificate
	RootCAs             *x509.CertPool
}

Jump to

Keyboard shortcuts

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