Git Product home page Git Product logo

opbeat-node's Introduction

Opbeat for Node.js

Build status Standard - JavaScript Style Guide

This is the official Node.js agent for Opbeat.

Opbeat provides instant performance insights, built for Node.js developers.

If you are looking for a module for your frontend JS applications, please see Opbeat for JS on GitHub.

Troubleshooting: If you encounter any problems setting up the Opbeat agent, please see our troubleshooting guide.

Quick start

Install the module:

npm install opbeat --save

To get started just require and start the Opbeat agent at the very top of your app's startup script. The Opbeat agent will be returned. The agent will now instrument your Node.js application and track unhandled exceptions automatically.

// Add this snippet to the VERY top of your app's startup script
var opbeat = require('opbeat').start({
  appId: '...',
  organizationId: '...',
  secretToken: '...'
})

If you want to manually send an error to Opbeat, use the captureError() function:

opbeat.captureError(new Error('Ups, something broke'))

Documentation

Testing

The test suite expects the databases PostgreSQL, MySQL, MongoDB 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.

License

BSD-2-Clause


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

opbeat-node's People

Contributors

watson avatar mattrobenolt avatar azylman avatar vanjacosic avatar adrivanhoudt avatar nachosoto avatar gnunicorn avatar ktmud avatar kmaschta avatar marcbachmann avatar defunctzombie avatar roncohen avatar

Watchers

Espen Hovlandsdal avatar James Cloos 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.