* Move and rename NetPeerUtils * Rename NetPeerUtils to NetPeerAttributes; inject instance instead of using a global var * Rename SpanAttributeSetter to AttributeSetter (might be used to set on AttributesBuilder in the future, who knows) * Deprecate default BaseTracer constructor: library instrumentations are supposed to inject all dependencies, the javaagent should explicitly pass globals * fix compilation failure * Remove peer.service customization from library instrumentation |
||
---|---|---|
.. | ||
src | ||
README.md | ||
aws-sdk-2.2-library.gradle |
README.md
AWS Java SDK v2 Instrumentation
Instrumentation for AWS Java SDK v2.
Usage
To register instrumentation on an SDK client, register the interceptor when creating it.
DynamoDbClient client = DynamoDbClient.builder()
.overrideConfiguration(ClientOverrideConfiguration.builder()
.addExecutionInterceptor(AwsSdk.newInterceptor()))
.build())
.build();
Trace propagation
The AWS SDK instrumentation currently only supports injecting the trace header into the request using the AWS Trace Header format. This format is the only format recognized by AWS managed services, and populating will allow propagating the trace through them. If this does not fulfill your use case, perhaps because you are using the same SDK with a different non-AWS managed service, let us know so we can provide configuration for this behavior.