@mzahor-test-org/open-telemetry-express
TypeScript icon, indicating that this package has built-in type declarations

0.0.37 • Public • Published

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',
    },
  }
});

Readme

Keywords

none

Package Sidebar

Install

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

Weekly Downloads

28

Version

0.0.37

License

Apache-2.0

Unpacked Size

35.7 kB

Total Files

13

Last publish

Collaborators

  • yanivd
  • mzahor-test
  • amir.aspecto
  • nirsky
  • aspecto-release-bot