
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
aws-xray-ts-decorator
Advanced tools
Instrument your Promises with AWS X-Ray in Typescript with elegant decorators
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.
yarn add aws-xray-ts-decorator
or with NPM
npm install aws-xray-ts-decorator --save
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.
👤 Rafal Wilinski <raf.wilinski@gmail.com>
Contributions, issues and feature requests are welcome!
Feel free to check issues page.
Give a ⭐️ if this project helped you!
Copyright © 2019 Rafal Wilinski <raf.wilinski@gmail.com>.
This project is MIT licensed.
FAQs
Instrument your Promises with AWS X-Ray in Typescript with elegant decorators
We found that aws-xray-ts-decorator demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.