@open-infra/telemetry-nest
v0.2.0
Published
RxJS-correct Nest interceptor for OpenInfra telemetry.
Maintainers
Readme
@open-infra/telemetry-nest
Nest interceptor for active HTTP span enrichment.
Install
npm install @open-infra/telemetry-nest @nestjs/common rxjsES modules with TypeScript declarations. Node.js 20.11 or newer; browser bindings require a browser bundler. Use synchronized versions of the OpenInfra telemetry packages.
Usage
Register new OpenInfraTelemetryInterceptor() with app.useGlobalInterceptors(). Start server telemetry before importing Nest and its HTTP adapter. The interceptor enriches the active span through RxJS completion/error handling.
Lifecycle and limits
Application runtimes own startup, consent, batching, and shutdown. Queues are bounded and can drop records under pressure. Framework adapters enrich existing spans rather than creating a second request span or provider. Keep browser gateway credentials on the server.
Getting started · Operations · Delivery semantics
Apache-2.0.
