UNPKG

signalfx-tracing

Version:

Provides auto-instrumentation for JavaScript libraries and frameworks

18 lines (13 loc) 418 B
'use strict' const semver = require('semver') const SUPPORTED_VERSIONS = '>=4' function validate () { if (!semver.satisfies(process.versions.node, SUPPORTED_VERSIONS)) { throw new Error([ `Node ${process.versions.node} is not supported.`, `Only versions of Node matching "${SUPPORTED_VERSIONS}" are supported.`, `Tracing has been disabled.` ].join(' ')) } } module.exports = validate