Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@mzahor-test-org/open-telemetry-express

Package Overview
Dependencies
Maintainers
3
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mzahor-test-org/open-telemetry-express

enhanced open telemetry instrumentation for the `express` web framework

latest
Source
npmnpm
Version
0.0.37
Version published
Maintainers
3
Created
Source

aspecto-open-telemetry-express

This module provide enhanced instrumentation for the express web framework. The instrumentation conforms to the Semantic conventions for HTTP spans as well as adding few other attributes:

  • Request and Response http payloads (body)
  • Request and Response http headers
  • Runtime layers executed as part of the request (express Routers, Routes and middlewares)

Usage

This plugin is automatically used by aspecto's tracing library.

To manually add it to a trace provider:

const { NodeTracerProvider } = require('@opentelemetry/node');

const provider = new NodeTracerProvider({
  plugins: {
    express: {
        enabled: true,
        path: '@mzahor-test-org/open-telemetry-express',
    },
  }
});

FAQs

Package last updated on 23 Jun 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts