Class AwsSdkTracing
- java.lang.Object
-
- io.opentelemetry.instrumentation.awssdk.v2_2.AwsSdkTracing
-
public class AwsSdkTracing extends Object
Entrypoint to OpenTelemetry instrumentation of the AWS SDK. Register theExecutionInterceptor
returned bynewExecutionInterceptor()
with an SDK client to have all requests traced.DynamoDbClient dynamoDb = DynamoDbClient.builder() .overrideConfiguration(ClientOverrideConfiguration.builder() .addExecutionInterceptor(AwsSdkTracing.create(openTelemetry).newExecutionInterceptor()) .build()) .build();
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AwsSdkTracing
create(io.opentelemetry.api.OpenTelemetry openTelemetry)
Returns a newAwsSdkTracing
configured with the givenOpenTelemetry
.static AwsSdkTracingBuilder
newBuilder(io.opentelemetry.api.OpenTelemetry openTelemetry)
Returns a newAwsSdkTracingBuilder
configured with the givenOpenTelemetry
.software.amazon.awssdk.core.interceptor.ExecutionInterceptor
newExecutionInterceptor()
Returns a newExecutionInterceptor
that can be used with methods likeClientOverrideConfiguration.Builder.addExecutionInterceptor(ExecutionInterceptor)
.
-
-
-
Method Detail
-
create
public static AwsSdkTracing create(io.opentelemetry.api.OpenTelemetry openTelemetry)
Returns a newAwsSdkTracing
configured with the givenOpenTelemetry
.
-
newBuilder
public static AwsSdkTracingBuilder newBuilder(io.opentelemetry.api.OpenTelemetry openTelemetry)
Returns a newAwsSdkTracingBuilder
configured with the givenOpenTelemetry
.
-
newExecutionInterceptor
public software.amazon.awssdk.core.interceptor.ExecutionInterceptor newExecutionInterceptor()
Returns a newExecutionInterceptor
that can be used with methods likeClientOverrideConfiguration.Builder.addExecutionInterceptor(ExecutionInterceptor)
.
-
-