telemetry

package
v1.0.71 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2025 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateOTLPBearerToken

func GenerateOTLPBearerToken(sharedSecret string, token string) (string, error)

func GenerateOTLPBearerTokenWithExpiration added in v1.0.9

func GenerateOTLPBearerTokenWithExpiration(sharedSecret string, expiration time.Time) (string, error)

func New

func New(ctx context.Context, serviceName string, telemetrySecret string, telemetryURL string, consoleLogger logger.Logger) (context.Context, logger.Logger, func(), error)

func NewWithAPIKey added in v1.0.27

func NewWithAPIKey(ctx context.Context, serviceName string, telemetryURL string, telemetryAPIKey string, consoleLogger logger.Logger) (context.Context, logger.Logger, func(), error)

func StartSpan

func StartSpan(ctx context.Context, logger logger.Logger, tracer trace.Tracer, spanName string, opts ...trace.SpanStartOption) (context.Context, logger.Logger, trace.Span)

Types

type ShutdownFunc

type ShutdownFunc func()

Jump to

Keyboard shortcuts

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