v0.1.1 — Apr 27, 2026
NewTracelit.metrics.observableGauge()— callback-based gauge that reads on export interval instead of on every call. Ideal for expensive computations like queue depth pollingWinstonTransport— named export that bridges Winston logs to the OTel LoggerProvider with automatictrace_id/span_idinjectioncreatePinoDestination()— Pino multistream destination for forwarding logs to the Tracelit log pipelineTracelit.expressMetricsMiddleware()— drop-in Express middleware that recordshttp.server.request.count,http.server.request.duration, andhttp.server.error.countper route
ErrorAlwaysOnSampler+ErrorSpanProcessorpair now guarantees error span export even atsampleRate: 0.0- Console bridge (
console.debug/log/info/warn/error) now preserves original output — no silent swallowing process.event_loop.laghistogram timer switched tounref()so it never prevents process exit- Dual CJS + ESM bundles with TypeScript 5 declaration files — no
moduleResolutionshenanigans needed
- Fixed
Tracelit.metricsreturning stalenullreference afterTracelit.start()called more than once - Fixed ESM named exports (
WinstonTransport,createPinoDestination) not resolving in some bundler setups