npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

traceview

v2.7.3

Published

Agent for TraceView

Downloads

121

Readme

TraceView

Travis branch David Code Climate npm npm

The traceview module provides TraceView instrumentation for Node.JS.

It has the ability to report performance metrics on an array of libraries, databases and frameworks.

It requires a TraceView account to view metrics. Get yours; it's free.

Dependencies

  • Linux
  • node.js v0.8+
  • liboboe installed at standard lib path
    • (installed as part of TraceView signup; node-traceview is a noop without it)

Release Notes

Here you can see the history of what we've released and also the different frameworks and versions that we support.

Installation

The 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:

require('traceview')

Configuration

See our documentation on configuring traceview for node.

Upgrading

To upgrade an existing installation, navigate to your app root and run:

npm install --save traceview@latest

Adding Your Own Layers

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.

Testing

Tests are written using mocha, and can be found in the test folder. Run them with:

npm test

Coverage reports

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

Auto Documentation

Automatatic documentation is included via yuidoc and can be generated and viewed with:

npm run docs

Support

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.

Contributing

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.

Developer Resources

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:

  • The TraceView Knowledge Base has a large collection of technical articles or, if needed, you can submit a support request directly to the team.

If you have any questions or ideas, don't hesitate to contact us anytime.

Layout of the module

The oboe module uses a standard layout. Here are the notable directories.

lib/probes  # Auto loaded instrumentation
lib         # Layer and Event constructors
src         # Bindings to liboboe
test        # Mocha test suite

Compiling the C extension

This module utilizes a C++ extension to interface with the system liboboe.so 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 servers.

Note: Make sure you have the development package liboboe0-dev installed before attempting to compile the C extension.

>$ dpkg -l | grep liboboe
ii  liboboe-dev                              1.2.1-trusty1                       amd64        TraceView common library -- development files
ii  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 src.

License

Copyright (c) 2016 SolarWinds, LLC

Released under the Librato Open License