@open-infra/telemetry-winston
v0.2.0
Published
Optional Winston transport into the application-owned OpenInfra telemetry log sink.
Maintainers
Readme
@open-infra/telemetry-winston
Winston transport into the runtime-owned OpenTelemetry log pipeline.
Install
npm install @open-infra/telemetry-winston winstonES 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
Add new OpenTelemetryWinstonTransport({ sink: telemetry.logger }) to your Winston transports after starting telemetry. It maps levels and attributes into the runtime log sink. Flush and shut down the telemetry runtime after application work drains.
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.
