How to use signalfx-tracing - 1 common examples

To help you get started, we’ve selected a few signalfx-tracing examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github signalfx / tracing-examples / signalfx-tracing / signalfx-nodejs-tracing / express / snowman / tracer.js View on Github external
// This module import and init() method invocation will create an
// OpenTracing-compatible tracer and initiate auto-instrumentation
// of all supported libraries and frameworks.
//
// This init() call MUST occur before any desired library is imported
// elsewhere for instrumentation to take effect globally.
//
const tracer = require('signalfx-tracing').init()
//
// The service name is obtained by SIGNALFX_SERVICE_NAME environment
// variable.  If declaring within the init() call is preferred,
// a `service` option object property can be used:
//
// const tracer = require('signalfx-tracing').init({ service: 'my-node-service' })
//
module.exports = tracer

signalfx-tracing

Provides auto-instrumentation for JavaScript libraries and frameworks

BSD-3-Clause
Latest version published 3 years ago

Package Health Score

45 / 100
Full package analysis

Popular signalfx-tracing functions