traceview module provides TraceView instrumentation for Node.JS.
It has the ability to report performance metrics on an array of libraries, databases and frameworks.
traceview module is available on npm and can be installed by navigating to your app root and running:
npm install --save traceview
Then, at the top of your main js file for your app, add this:
See our documentation on configuring traceview for node.
To upgrade an existing installation, navigate to your app root and run:
npm install --save traceview@latest
In addition to the default layers captured automatically, you can optionally add your own. To learn on how to modify your code to report custom layers, read here.
Tests are written using mocha, and can be
found in the
test folder. Run them with:
Test coverage reporting is also included. You can get a summary by running:
npm run coverage:report
Or, for a more in-depth view that shows reached areas of code, run:
npm run coverage:html
Automatatic documentation is included via yuidoc and can be generated and viewed with:
npm run docs
If you find a bug or would like to request an enhancement, feel free to file an issue. For all other support requests, see our support portal.
You are obviously a person of great sense and intelligence. We happily appreciate all contributions to the oboe module whether it is documentation, a bug fix, new instrumentation for a library or framework or anything else we haven't thought of.
We welcome you to send us PRs. We also humbly request that any new instrumentation submissions have corresponding tests that accompany them. This way we don't break any of your additions when we (and others) make changes after the fact.
We have made a large effort to expose as much technical information as possible to assist developers wishing to contribute to the traceview module. Below is a good source of information and help for developers:
If you have any questions or ideas, don't hesitate to contact us anytime.
The oboe module uses a standard layout. Here are the notable directories.
lib/probes # Auto loaded instrumentationlib # Layer and Event constructorssrc # Bindings to liboboetest # Mocha test suite
This module utilizes a C++ extension to interface with the system
library. This system library is installed with the TraceView host packages
(tracelyzer, liboboe0, liboboe-dev) and is used to report host and performance
metrics from multiple sources (nodejs, nginx, python etc.) back to TraceView
Note: Make sure you have the development package
before attempting to compile the C extension.
>$ dpkg -l | grep liboboeii liboboe-dev 1.2.1-trusty1 amd64 TraceView common library -- development filesii liboboe0 1.2.1-trusty1 amd64 Traceview common library
See Installing Base Packages on Debian and Ubuntu in the Knowledge Base for details.
To see the code related to the C++ extension, take a look in
Copyright (c) 2016 SolarWinds, LLC
Released under the Librato Open License