You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I understand X-Ray currently only support MySQL and Postgres drivers. We use the Postgres annotation frequently to investigate issues, it would be nice if SQL annotations could be added for athena as well.
The text was updated successfully, but these errors were encountered:
If your goal is to add an XRay Annotation to an Athena subsegment (presumable made via AWS SDK), you can try the following code example to add an annotation to the last created subsegment. (referenced from docs)
/*
Athena call via AWS SDK
*/
// Retrieve the most recently created subsegment
const subs = AWSXRay.getSegment().subsegments;
if (subs & & subs.length > 0) {
var lastSubsegment = subs[subs.length - 1];
lastSubsegment.addAnnotation("testKey", "testValue");
}
Hello,
I understand X-Ray currently only support MySQL and Postgres drivers. We use the Postgres annotation frequently to investigate issues, it would be nice if SQL annotations could be added for athena as well.
The text was updated successfully, but these errors were encountered: