Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 552 Bytes

File metadata and controls

25 lines (17 loc) · 552 Bytes

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