Skip to content

devmasx/opentelemetry-extended-instrumentation-http

Repository files navigation

Opentelemetry extended instrumentation HTTP

Usage

npm install package-example
import { getNodeAutoInstrumentations } from '@opentelemetry/auto-instrumentations-node';
import { HttpInstrumentation } from 'opentelemetry-extended-instrumentation-http'

const instrumentations = getNodeAutoInstrumentations(HttpInstrumentation.withPayloadDetails())

Add new spans for all outcoming http request:

  • http.request.body
  • http.request.headers
  • http.response.body
  • http.response.headers

TODO

  • mask request body property

About

Add more funcionalities to opentelemetry nstrumentation http module

Resources

Stars

Watchers

Forks

Packages

No packages published