https://github.com/vladholubiev/aws-xray-trace-id
Get AWS X-Ray Trace Id from Lambda Environment
https://github.com/vladholubiev/aws-xray-trace-id
aws-lambda aws-xray node-module npm-package
Last synced: 7 months ago
JSON representation
Get AWS X-Ray Trace Id from Lambda Environment
- Host: GitHub
- URL: https://github.com/vladholubiev/aws-xray-trace-id
- Owner: vladholubiev
- License: mit
- Created: 2018-01-20T23:03:43.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-12-11T15:58:57.000Z (almost 5 years ago)
- Last Synced: 2025-02-23T13:46:22.381Z (7 months ago)
- Topics: aws-lambda, aws-xray, node-module, npm-package
- Language: JavaScript
- Size: 80.1 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# aws-xray-trace-id [](https://circleci.com/gh/vladgolubev/aws-xray-trace-id) 
> Get AWS X-Ray Trace Id from Lambda Environment
## Install
```
$ yarn add aws-xray-trace-id
```## Usage
```js
const getTraceId = require('aws-xray-trace-id');const {root, parent} = getTraceId();
/*
{
root: '1-5a63c944-524af1e83d023d4d222d8a3b',
parent: '533a3da646ba1902'
}
*/
```## License
MIT © [Vlad Holubiev](http://vladholubiev.com)