Socket
Socket
Sign inDemoInstall

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

Package Overview
Dependencies
3
Maintainers
3
Versions
27
Alerts
File Explorer

Advanced tools

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


Version published
Weekly downloads
1
Maintainers
3
Created
Weekly downloads
 

Readme

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

Last updated on 23 Jun 2020

Did you know?

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc