aws-observability / aws-otel-js

AWS Distro for OpenTelemetry JavaScript SDK
https://aws-otel.github.io/
Apache License 2.0
36 stars 22 forks source link

AWS Resources not recognised (AWS SDK v3 support) #45

Closed noliva closed 1 year ago

noliva commented 3 years ago

Hello,

I have the following example that makes use of the aws-collector and the open-telemetry instrumentation.

This is the repo and the exact commit: https://github.com/noliva/aws-observability/tree/f9e5abba1c1e240f90e56d1fc0f390c6f453874e

Basically, the problem is that when I do any requests to that service I don't see the DynamoDB instrumentation or the response code in the X-Ray console.

This is what a request looks like in the console:

Screenshot 2020-12-18 at 16 38 52

This is what I would expect:

expectation

Not sure if I've done something wrong in the code or there is an issue with the SDK.

Thank you!

KKelvinLo commented 3 years ago

Hello @noliva , thanks for reaching out! Have you tried using this configuration ? This is a plugin you have to install and configure in your trace.js file you gave as an example.

noliva commented 3 years ago

Thank you very much @KKelvinLo for your quick response. I've added that plugin to my repository, but I can't tell the difference as I'm still seeing exactly the same as before.

This is the link to the new commit https://github.com/noliva/aws-observability/tree/627ee4106ee8c0153230e169e1c3824241ee85ac

KKelvinLo commented 3 years ago

Ah I see the issue, currently the plugin currently supports V2 AWS JS SDK and you're using the newly released V3.0.0 for dynamo DB. That plugin support is currently not in place, but it will be in the future. I apologize for any inconvenience.

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 90 days with no activity. If you want to keep this issue open, please just leave a comment below and auto-close will be canceled

github-actions[bot] commented 1 year ago

This issue was closed because it has been marked as stale for 30 days with no activity.