RafalWilinski / Aws Xray Ts Decorator
Licence: mit
Instrument your Typescript code with AWS X-Ray using elegant decorators
Stars: ✭ 17
Programming Languages
javascript
184084 projects - #8 most used programming language
typescript
32286 projects
ts
41 projects
Projects that are alternatives of or similar to Aws Xray Ts Decorator
Aws Auto Cleanup
Open-source application to programmatically clean your AWS resources based on a whitelist and time to live (TTL) settings
Stars: ✭ 276 (+1523.53%)
Mutual labels: aws, cloud, amazon-web-services
Opencensus Node
A stats collection and distributed tracing framework
Stars: ✭ 249 (+1364.71%)
Mutual labels: cloud, tracing, instrumentation
Opencensus Web
A stats collection and distributed tracing framework
Stars: ✭ 168 (+888.24%)
Mutual labels: cloud, tracing, instrumentation
Cloud Portal
Self service web portal for different Cloud platforms like Azure, AWS and VMWare vSphere.
Stars: ✭ 60 (+252.94%)
Mutual labels: aws, cloud, amazon-web-services
Deploy Spring Boot Aws Eb
Deploying Spring Boot Apps to AWS using Elastic Beanstalk
Stars: ✭ 79 (+364.71%)
Mutual labels: aws, cloud, amazon-web-services
Cloud Security Audit
A command line security audit tool for Amazon Web Services
Stars: ✭ 68 (+300%)
Mutual labels: aws, cloud, amazon-web-services
Docker Swarm
🐳🐳🐳 This repository is part of a blog series on Docker Swarm example using VirtualBox, OVH Openstack, Azure and Amazon Web Services AWS
Stars: ✭ 43 (+152.94%)
Mutual labels: aws, cloud, amazon-web-services
Java Specialagent
Automatic instrumentation for 3rd-party libraries in Java applications with OpenTracing.
Stars: ✭ 156 (+817.65%)
Mutual labels: aws, tracing, instrumentation
Howtheyaws
A curated collection of publicly available resources on how technology and tech-savvy organizations around the world use Amazon Web Services (AWS)
Stars: ✭ 389 (+2188.24%)
Mutual labels: aws, cloud, amazon-web-services
Skyark
SkyArk helps to discover, assess and secure the most privileged entities in Azure and AWS
Stars: ✭ 526 (+2994.12%)
Mutual labels: aws, cloud
Ecs Deploy
Powerful CLI tool to simplify Amazon ECS deployments, rollbacks & scaling
Stars: ✭ 541 (+3082.35%)
Mutual labels: aws, amazon-web-services
Saws
A supercharged AWS command line interface (CLI).
Stars: ✭ 4,886 (+28641.18%)
Mutual labels: aws, cloud
Kubernetes On Aws
Deploying Kubernetes on AWS with CloudFormation and Ubuntu
Stars: ✭ 517 (+2941.18%)
Mutual labels: aws, cloud
Webiny Js
Enterprise open-source serverless CMS. Includes a headless CMS, page builder, form builder and file manager. Easy to customize and expand. Deploys to AWS.
Stars: ✭ 4,869 (+28541.18%)
Mutual labels: aws, cloud
Aws Mfa
Manage AWS MFA Security Credentials
Stars: ✭ 606 (+3464.71%)
Mutual labels: aws, amazon-web-services
Dev Setup
macOS development environment setup: Easy-to-understand instructions with automated setup scripts for developer tools like Vim, Sublime Text, Bash, iTerm, Python data analysis, Spark, Hadoop MapReduce, AWS, Heroku, JavaScript web development, Android development, common data stores, and dev-based OS X defaults.
Stars: ✭ 5,590 (+32782.35%)
Mutual labels: aws, cloud
Zipkin Go Opentracing
OpenTracing Bridge for Zipkin Go
Stars: ✭ 472 (+2676.47%)
Mutual labels: tracing, instrumentation
Finala
Finala is an open-source resource cloud scanner that analyzes, discloses, presents and notifies about wasteful and unused resources.
Stars: ✭ 605 (+3458.82%)
Mutual labels: aws, cloud
AWS X-Ray Typescript Decorator
Tired of using AWSXRay.captureAsyncFunc
and/or AWSXRay.capturePromise
polluting the body of your methods? Instrument your class async methods and Promises with this simple yet elegant decorator.
Install
yarn add aws-xray-ts-decorator
or with NPM
npm install aws-xray-ts-decorator --save
Usage
class MyTestClass {
// All of these arguments are optional
@XRayInstrumented({
segmentName: "customSegmentName", // by default it's name of called function
metadata: { // Add custom metadata as StringMap
memberId: "1"
},
annotations: { // Add custom annotations as StringMap
context: "this is important!"
},
forceCreateSegment: true, // Creates new AWSXRay.Segment if such is not created yet
addParamsMetadata: true // Adds function parameters as metadata of subsegment
})
someAsyncMethod(input: number): Promise<any> {
...
}
}
This snippet will start a subsegment customSegmentName
before someAsyncMethod
gets invoked and close it as soon as it resolves.
For more details, see example.
Author
👤 Rafal Wilinski <[email protected]>
- Twitter: @rafalwilinski
- Github: @RafalWilinski
🤝 Contributing
Contributions, issues and feature requests are welcome!
Feel free to check issues page.
Show your support
Give a ⭐️ if this project helped you!
📝 License
Copyright © 2019 Rafal Wilinski <[email protected]>.
This project is MIT licensed.
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].