-
Notifications
You must be signed in to change notification settings - Fork 118
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
support/document usage with aws-go-sdk-v2 #53
Comments
Hello @kapilt , thank you for your feedback. We will add this request into our backlog and make sure X-Ray Go SDK is compatible with AWS Go SDK version 2. In the meantime, feel free to send any PRs on this issue and we are happy to accept them. Please stay tuned. |
Any updates on this? |
Hello @jason-riddle Sorry for the late reply. |
If i would work on this feature would we need to be able to support v1 and v2 of the SDK? or like what has been done would with other v2 packages would you create a github.com/aws/aws-xray-sdk-go-v2? |
Hello @alikor , sorry for the late response. Unfortunately, we're not going to support a preview version of xray sdk v2 like aws sdk did. Since aws go sdk v2 is still under developing, we cannot provide a specific version of xray sdk that based on a not finalized version of aws sdk. However, we will definitely work with aws sdk team to make sure xray sdk is up to date ASAP when aws sdk v2 is released. |
@luluzhao Thanks for your reply. My understanding is, that sdk v2 is pretty close to the final release for the following reasons:
Do you have some information about a possible release date of v2 of the sdk? |
As a temporary fix for aws#53
As a temporary fix for aws#53
I'm looking forward to having support for V2, which will enhance my Serverless apps a lot! |
Is there anything that we can do to enable xray tracing of client calls using sdk-v2? |
There is a pretty up to date fork you can use in the meantime: https://github.com/medisante/aws-xray-sdk-go The fork shows how easy it is to enable v2 in X-Ray without changing any existing code. Would it be an option to create a PR from that fork @luluzhao? After all, the v2 SDK has been out for quite a while now and can hardly still be considered a developer preview (it has seen multiple releases without |
I seem unable to use that fork. It looks like the master version with the v2 code in it hasn't been tagged so go only gets the version before the v2 code was added. So adding the v2 file to the original code base would be great. |
Ok so for others who want to use the fork, I was being a bit dim earlier. You can just use
as a replacement. Until they add the code into the official branch. |
@laverboy, you can also just add the following line to the bottom of your
From then on you can use it as |
If you're interested, I've ported the whole XRay SDK to v2 version of the Go SDK, with normal Go modules. No more V1 dependencies! |
Any more on supporting v2, doesn't look like it is going away any time soon? |
Hi, aws-sdk-v2 is still in Developer preview (beta) version. I believe we would still want to wait for aws-sdk-v2 to go GA (generally available) before we merge any code to our official branch. Meanwhile, community can utilize posted recommendations in this thread. Those recommendations looks neat to me. |
@bhautikpip any timeline on this now that the aws-sdk-go-v2 is GA? https://aws.amazon.com/about-aws/whats-new/2021/01/aws-sdk-for-go-version-2-now-generally-available/ |
X-Ray Go SDK |
Its not really apparent how to use go xray support with v2 Clients.
The text was updated successfully, but these errors were encountered: