{"repo":"narando/nest-xray","free":true,"listed":false,"github":"https://github.com/narando/nest-xray","clone":"git clone https://github.com/narando/nest-xray.git","description":"Distributed tracing for Nestjs with AWS X-Ray as the backend. Instrument incoming and outgoing HTTP requests","language":"TypeScript","stars":66,"topics":["nestjs","nest","aws-xray","xray","tracing","typescript","nodejs"],"license":"MIT","category":"analytics","readme_excerpt":"@narando/nest-xray This module implements Distributed Tracing with AWS X-Ray for Nest.js services. Features - Supported Environments - HTTP (express.js) - Clients - HttpService / HttpModule - Manually create new Subsegments to trace custom functions Usage ⚠️ If you want to use @narando/nest-xray with NestJS Version 6 or 7, please use the v1 release. The v2 release is only compatible with NestJS Version 8 or 9 and @nestjs/axios =0.0.5 If you are interested in contributing : Building and supporting more environments would greatly improve the usefulness of this package. Potential environments could be: - @nestjs/graphql - @nestjs/websockets - @nestjs/microservices - AWS Lambda - where the trace metadata is presented in environment variables, see #67 Http The HttpEnvironment checks whether the X-Amzn-Trace-Id header is set and valid, and then creates a segment that references this origin trace. When the request succeeds or fails, the environment adds the current time and the success/error status to the segment. This environment is mostly implemented through the express middleware of the official aws-xray-sdk Clients To trace calls made to a different service, you can either use a premade client , or use the TracingService#createSubSegment method to manually instrument the client of your choosing. The premade clients will automatically create a subsegment for all requests made, and track the duration and response code. HttpService This client is a drop-in replacement for the HttpS","default_branch":null,"files":null,"tree":[],"storefront":"/r/narando","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/narando/nest-xray/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}