0.1.1 • Published 1 year ago
opentelemetry-extended-instrumentation-http v0.1.1
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