-
Notifications
You must be signed in to change notification settings - Fork 791
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add instrumentation of SQS. #1210
Conversation
Sent this as a draft in advance to refer to from spec issue, no need to even start reviewing in detail yet (unless you're interested :) ) |
Finished it up with my understanding of the current spec. I expect some changes in the spec as working through scenarios in open-telemetry/semantic-conventions#652 but I think this is a pretty good first version. |
@@ -21,6 +21,7 @@ muzzle { | |||
group = "com.amazonaws" | |||
module = "aws-lambda-java-core" | |||
versions = "[1.0.0,)" | |||
extraDependency('com.amazonaws:aws-lambda-java-events:2.2.1') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if I should instead of a separate instrumentation module, aws-lambda-sqs-2.2.1
due to this extra, optional dependency. Not quite sure where we want to set boundaries for highly related instrumentation like this case, let me know any thoughts.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it makes sense here to add muzzle requirement on aws-lambda-java-events
also, e.g.
pass {
group = "com.amazonaws"
module = "aws-lambda-java-events"
versions = "[2.2.1,)"
extraDependency('com.amazonaws:aws-lambda-java-core:1.0.0')
}
...pentelemetry/instrumentation/auto/awslambda/v1_0/AwsLambdaRequestHandlerInstrumentation.java
Outdated
Show resolved
Hide resolved
...pentelemetry/instrumentation/auto/awslambda/v1_0/AwsLambdaRequestHandlerInstrumentation.java
Outdated
Show resolved
Hide resolved
...groovy/io/opentelemetry/instrumentation/awslambda/v1_0/AwsLambdaSqsMessageHandlerTest.groovy
Show resolved
Hide resolved
instrumentation-api/src/main/java/io/opentelemetry/instrumentation/api/tracer/BaseTracer.java
Show resolved
Hide resolved
...a/io/opentelemetry/instrumentation/auto/awslambda/v1_0/AbstractAwsLambdaInstrumentation.java
Outdated
Show resolved
Hide resolved
instrumentation/aws-lambda-1.0/library/aws-lambda-1.0-library.gradle
Outdated
Show resolved
Hide resolved
...groovy/io/opentelemetry/instrumentation/awslambda/v1_0/AwsLambdaSqsMessageHandlerTest.groovy
Show resolved
Hide resolved
...pentelemetry/instrumentation/auto/awslambda/v1_0/AwsLambdaRequestHandlerInstrumentation.java
Outdated
Show resolved
Hide resolved
…-instr-java into sqs-instrumentation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice, I'm glad that worked out to require user to configure the xray propagator, makes this instrumentation feel a lot cleaner
...a/io/opentelemetry/instrumentation/auto/awslambda/v1_0/AbstractAwsLambdaInstrumentation.java
Outdated
Show resolved
Hide resolved
…etry/instrumentation/auto/awslambda/v1_0/AbstractAwsLambdaInstrumentation.java Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
No description provided.