Comments (1)
Hi, can you clarify what is your requirement?
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");
}
from aws-xray-sdk-node.
Related Issues (20)
- Size of the aws-xray-sdk-core package dependencies (i.e. the bundle) HOT 1
- memory leaks caused by cls-hooked HOT 3
- Vulnerability in the library HOT 6
- Adding custom attributes to AWS SDK v3 calls HOT 2
- Please update readme for postgres
- captureAWSv3Client doesn't support SecretManager client HOT 3
- Add support for the lamda-api web framework
- captureAsyncFunc is not working for AWS Lambda with runtime nodejs 16 HOT 1
- Release 3.5.2 HOT 2
- Segment containing BigInt in metadata throws an error when serialized HOT 2
- Cannot find module 'aws-xray-sdk' in nodejs Lambda
- warning message @aws-sdk/service-error-classification is moved to @smithy/service-error-classification
- Support undici HOT 1
- Feature Request | ServiceMap in X-Ray Tracing does not show EventBridge and SQS
- Creating Linked Traces between SQS Producer and Consumer on Non Serverless Compute HOT 2
- Is there any way how to use XRay instrumentation for AWS NodeJS SDK v3? I have the below HOT 2
- SimulatePrincipalpolicy:: Python SDK does not work with regular expressions HOT 1
- Wrong link to the sdk contrib readmes HOT 1
- fetch with URL object fails with `Cannot read properties of undefined (reading 'has')`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aws-xray-sdk-node.