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

aws-sdk-1.1: Copy SQS plugin/NoMuzzle approach from 2.2 #8866

Conversation

Oberon00
Copy link
Member

@Oberon00 Oberon00 commented Jul 4, 2023

This basically is a port from the v2.2 instrumentation to v1.11 of #8603 (incl. follow-ups #8775 and #8805 and the AdviceBridge class move from #8830).

It does not contain any (intentional) functionality changes. At the moment it is a net code bloat (13 files changed, 286 insertions(+), 255 deletions(-)) but does add type safety & better muzzle coverage. Also, it should make porting further functionality changes for configured-propagator-based SQS/SNS features much more straightforward (and then result in a net reduction of LOC)

@Oberon00 Oberon00 requested a review from a team July 4, 2023 16:24
Request<?> request,
Response<?> response,
Instrumenter<Request<?>, Response<?>> consumerInstrumenter) {
if (response.getAwsResponse() instanceof ReceiveMessageResult) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Previously we instead checked that the request is a ReceiveMessageRequest. This should not matter, but since we cast the response w/o expecting exceptions, I thought it safer to check the response instead.

@Oberon00
Copy link
Member Author

Oberon00 commented Jul 5, 2023

(Build problems are unrelated to my changes: wrapper validation.
Error: write EPROTO 140592197302208:error:14094410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure:../deps/openssl/openssl/ssl/record/rec_layer_s3.c:1546:SSL alert number 40, muzzle4: Execution failed for task ':instrumentation:guava-10.0:javaagent:muzzle-AssertPass-com.google.guava-guava-32.1.0-android'. > Could not resolve all files for configuration ':instrumentation:guava-10.0:javaagent:muzzle-AssertPass-com.google.guava-guava-32.1.0-android'.)

(EDIT: Next build failing in different, also unrelated stages, e.g. smoke, ubuntu-latest, liberty: com.github.dockerjava.api.exception.DockerClientException: Could not pull image: failed to register layer: ApplyLayer exit status 1 stdout: stderr: write /opt/ol/wlp/dev/api/third-party/io.openliberty.persistence.3.1.thirdparty_1.0.75.jar: no space left on device)

@mateuszrzeszutek
Copy link
Member

(EDIT: Next build failing in different, also unrelated stages, e.g. smoke, ubuntu-latest, liberty: com.github.dockerjava.api.exception.DockerClientException: Could not pull image: failed to register layer: ApplyLayer exit status 1 stdout: stderr: write /opt/ol/wlp/dev/api/third-party/io.openliberty.persistence.3.1.thirdparty_1.0.75.jar: no space left on device)

Yeah, this has happened in the daily build too. I'm thinking the GHA env might be a bit unstable right now.

// (where it is always available) but a dependency failed to load (most likely because the
// corresponding SDK dependency is not on the class path).
logger.log(
Level.FINE, e, () -> implFullClassName + " not present, probably incompatible version");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: comment says that it probably fails because dependency is missing, log line says probably incompatible version which feels inconsistent

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adapted in c2cb01d

@trask
Copy link
Member

trask commented Jul 5, 2023

(EDIT: Next build failing in different, also unrelated stages, e.g. smoke, ubuntu-latest, liberty: com.github.dockerjava.api.exception.DockerClientException: Could not pull image: failed to register layer: ApplyLayer exit status 1 stdout: stderr: write /opt/ol/wlp/dev/api/third-party/io.openliberty.persistence.3.1.thirdparty_1.0.75.jar: no space left on device)

this one should be fixed in main now by #8874

@mateuszrzeszutek mateuszrzeszutek merged commit ba2f8d2 into open-telemetry:main Jul 6, 2023
@Oberon00 Oberon00 deleted the aws-v1-refl-cleanup branch July 6, 2023 12:59
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 this pull request may close these issues.

4 participants