Documentation
¶
Index ¶
- func GenerateOTLPBearerToken(sharedSecret string, token string) (string, error)
- func GenerateOTLPBearerTokenWithExpiration(sharedSecret string, expiration time.Time) (string, error)
- func New(ctx context.Context, serviceName string, telemetrySecret string, ...) (context.Context, logger.Logger, func(), error)
- func NewWithAPIKey(ctx context.Context, serviceName string, telemetryURL string, ...) (context.Context, logger.Logger, func(), error)
- func StartSpan(ctx context.Context, logger logger.Logger, tracer trace.Tracer, ...) (context.Context, logger.Logger, trace.Span)
- type Option
- type ShutdownFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateOTLPBearerToken ¶
func GenerateOTLPBearerTokenWithExpiration ¶ added in v1.0.9
func NewWithAPIKey ¶ added in v1.0.27
Types ¶
type Option ¶ added in v1.0.84
type Option func(*config)
Option is a functional option for configuring telemetry
func WithDialContext ¶ added in v1.0.106
WithDialContext sets a custom dialer for HTTP connections
func WithHeaders ¶ added in v1.0.84
WithHeaders sets custom headers for HTTP connections
func WithTimeout ¶ added in v1.0.84
WithTimeout sets a custom timeout for HTTP connections
type ShutdownFunc ¶
type ShutdownFunc func()
Click to show internal directories.
Click to hide internal directories.