Skip to content
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

Java Agent Lambda Layer does not work on Java 8 runtime #199

Closed
NathanielRN opened this issue Dec 17, 2021 · 1 comment · Fixed by aws-otel/aws-otel.github.io#222
Closed

Comments

@NathanielRN
Copy link
Contributor

Description

This caught my attention because of open-telemetry/opentelemetry-lambda#107, which said that the Java Agent Lambda Layer only works on the Java 11 runtime.

This is in contrast to the AWS Public Documentation for the Java Agent Lambda Layer which says the Layer is compatible with both Java 8 and Java 11 runtimes.

Our tests most likely did not catch this because we only test our Sample App on the Java 11 run-time.

I confirmed this by using the AWS SDK Sample App from the OTel Lambda repo and testing it only both Java 8 and Java 11:

The trace from the Java 11 run-time:

Screen Shot 2021-12-17 at 11 45 00 AM

The trace from the Java 8 run-time:

Screen Shot 2021-12-17 at 11 46 05 AM

The Java 8 runtime does not have the S3 trace which means it is not instrumenting the AWS SDK.

cc @anuraaga

@NathanielRN
Copy link
Contributor Author

We determined that this is a known limitation. Linked a PR to update our documentation that will automatically close this issue when merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant