Documentation
¶
Index ¶
- func Error(span trace.Span, err error, msg string)
- func InstrumentHTTPClient(client *http.Client) *http.Client
- func InstrumentLambdaHandler(handlerFunc interface{}) interface{}
- func InstrumentRedisClient(client *redis.Client) *redis.Client
- func SetupTelemetry(ctx context.Context, cfg *aws.Config) (func(context.Context), error)
- func StartSpan(ctx context.Context, name string) (context.Context, trace.Span)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InstrumentHTTPClient ¶ added in v1.3.0
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 ¶
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.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.