Giter Site home page Giter Site logo

lewisjellis / apm-agent-nodejs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from elastic/apm-agent-nodejs

0.0 3.0 0.0 1.34 MB

Elastic APM Node.js Agent (Beta)

Home Page: https://www.elastic.co/guide/en/apm/agent/nodejs/current/index.html

License: BSD 2-Clause "Simplified" License

JavaScript 99.30% Shell 0.70%

apm-agent-nodejs's Introduction

Elastic APM Node.js Agent (Beta)

Build status Standard - JavaScript Style Guide

Warning: This project is currently in beta. Use it at your own risk.

This is the official Node.js agent for Elastic APM. Read our announcement blog post for details.

If you are trying out APM and have feedback or problems, please post them on the Discuss forum.

Quick start

  1. To run Elastic APM for your own applications make sure you have the prerequisites in place first. For details see Getting Started with Elastic APM

  2. Now follow the documentation links below relevant to your framework or stack to get set up

Documentation

Development Notes

To ease development, set the environment variable DEBUG_PAYLOAD=1 to have the agent dump the JSON payload sent to the APM Server to a temporary file on your local harddrive.

Testing

The test suite expects the databases PostgreSQL, MySQL, MongoDB, Elasticsearch and Redis to be present. The npm test command will try and start them all automatically before running the tests. This should work on OS X if the databases are all installed using Homebrew.

To run the linter without running any tests, run npm run lint. To automatically fix linting errors run npm run lint-fix.

Using Docker for Testing

Running the testsuite on Jenkins is based on docker images. You can also make use of this setup when running tests locally. Scripts are provided for different stages of testing: testing the documentation, running tests against different Node.js versions and running tests against different versions of dependencies. The scripts are tested with a minimum docker version of 17.06.2-ce. For a full overview of the supported test matrix have a look at Jenkins Configuration.

Testing Documentation

./test/script/docker/run_docs.sh

Testing against Node.js versions

./test/script/docker/run_tests.sh nodejs-version

E.g. ./test/script/docker/run_tests.sh 8

Testing Dependencies

./test/script/docker/run_tests.sh nodejs-version dependencies

E.g. ./test/script/docker/run_tests.sh 8 redis,pg

Cleanup Docker Container and Volumes

./test/script/docker/cleanup.sh

License

BSD-2-Clause


Made with ♥️ and ☕️ by Elastic and our community.

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.