How to use the @opencensus/instrumentation-http.plugin function in @opencensus/instrumentation-http

To help you get started, we’ve selected a few @opencensus/instrumentation-http 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 census-ecosystem / opencensus-experiments / interoptest / src / nodejsservice / server.js View on Github external
function enableHttpPlugin (tracer) {
  // 1. Define node version
  const version = process.versions.node;

  // 2. Enable HTTP plugin
  httpPlugin.plugin.enable(http, tracer, version, null);
}