Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including aws-xray-sdk with all npm packages installed. Try it out:

var awsXraySdk = require("aws-xray-sdk")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

aws-xray-sdk v3.0.1

AWS X-Ray SDK for Javascript

Requirements

  • AWS SDK v2.7.15 or greater (if using captureAWS or captureAWSClient)
  • Express 4.14.0 or greater (if using Express and the associated X-Ray middleware)
  • MySQL 2.12.0 or greater (if using captureMySQL)
  • Postgres 6.1.0 or greater (if using capturePostgres)

AWS X-Ray

The AWS X-Ray SDK automatically records information for incoming and outgoing requests and responses (via middleware), as well as local data such as function calls, time, variables (via metadata and annotations), even EC2 instance data (via plugins).

Although the AWS X-Ray SDK was originally intended to capture request/response data on a web app, the SDK provides functionality for use cases outside this as well. The SDK exposes the 'Segment' and 'Subsegment' objects to create your own capturing mechanisms, middleware, etc.

This package includes the following AWS X-Ray packages.

aws-xray-sdk-core
aws-xray-sdk-express
aws-xray-sdk-postgres
aws-xray-sdk-mysql

Setup

The core package contains the base SDK functionality. Please see the aws-xray-sdk-core README.md for more details.

Support for web frameworks

Metadata

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free