telemetry

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2025 License: Apache-2.0, MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error added in v1.3.0

func Error(span trace.Span, err error, msg string)

func InstrumentHTTPClient added in v1.3.0

func InstrumentHTTPClient(client *http.Client) *http.Client

func InstrumentLambdaHandler added in v1.3.0

func InstrumentLambdaHandler(handlerFunc interface{}) interface{}

func InstrumentRedisClient added in v1.3.0

func InstrumentRedisClient(client *redis.Client) *redis.Client

func SetupTelemetry

func SetupTelemetry(ctx context.Context, cfg *aws.Config) (func(context.Context), error)

SetupTelemetry configures the OpenTelemetry SDK by setting up a global tracer provider. It also adds instrumentation middleware to the config so that all AWS SDK clients based on that config are instrumented. This function updates the configuration in place. It should be called before any AWS SDK clients are created.

func StartSpan added in v1.3.0

func StartSpan(ctx context.Context, name string) (context.Context, trace.Span)

Types

This section is empty.

Jump to

Keyboard shortcuts

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