Socket
Book a DemoInstallSign in
Socket

@aspecto/opentelemetry-plugin-express

Package Overview
Dependencies
Maintainers
6
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aspecto/opentelemetry-plugin-express

enhanced open telemetry instrumentation for the `express` web framework

0.0.99
latest
Source
npmnpm
Version published
Weekly downloads
79
7800%
Maintainers
6
Weekly downloads
 
Created
Source

aspecto-opentelemetry-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: '@aspecto/opentelemetry-plugin-express',
    },
  }
});

FAQs

Package last updated on 14 Feb 2021

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.