GithubHelp home page GithubHelp logo

jderrett / aws-xray-sdk-node-sample Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aws-samples/aws-xray-sdk-node-sample

0.0 0.0 0.0 27 KB

The official sample app for the AWS X-Ray SDK for Node.js

License: MIT No Attribution

JavaScript 81.79% HTML 18.21%

aws-xray-sdk-node-sample's Introduction

X-Ray SDK for Node.js Sample App

This repository contains a sample web app built using express.js and instrumented with the X-Ray SDK for Node.js. It is intended to demonstrate the tracing capabilities of the SDK by running a local website that makes a variety of downstream requests. An HTTP downstream request, AWS SDK request, and MySQL query are demonstrated in the app.

Prerequisites

Set Up

  1. Clone this repo to your local machine
  2. Navigate into the repository
  3. Run npm install
  4. Run node index.js to run the webapp on localhost
  5. Go to localhost:3000 in your browser of choice, and play around with the sample app!

NOTE: the sample app uses the us-west-2 region by default, but you can override that by setting the AWS_DEFAULT_REGION environment variable.

Setting up MySQL Tracing Demo

These steps are only necessary if you'd like to see the MySQL demo in the sample app. If you already have a MySQL environment set up, you can skip to step 4.

  1. Set up a MySQL server
  2. Follow this tutorial to create a MySQL database
  3. Follow this tutorial to create a table in that database
  4. Populate mysql-config.json with the required information
  5. Go to the sample app in your browser to experience the MySQL tracing demo!

Getting Help

Please consult the official AWS Documentation for general questions about the X-Ray SDK for Node.js, and the API reference for implementation-specific questions. If you notice an issue with this sample app, please open an issue. If you notice an issue with the SDK itself, please open an issue in its repository.

License

This library is licensed under the MIT-0 License. See the LICENSE file.

aws-xray-sdk-node-sample's People

Contributors

jderrett avatar amazon-auto avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.