@open-infra/telemetry-pino
v0.2.0
Published
Optional Pino bridge into the OpenInfra-owned OpenTelemetry logger provider.
Maintainers
Readme
@open-infra/telemetry-pino
Pino bridge into the runtime-owned OpenTelemetry log pipeline.
Install
npm install @open-infra/telemetry-pino pinoES 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
Create pino({ hooks: createPinoTelemetryHook(telemetry.logger), mixin: pinoTraceMixin }). The hook forwards records and preserves the original Pino method. It creates no provider or background transport. createPinoOtelTransport is a removed-API stub that throws.
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.
