otel_simple_logger 0.1.0
otel_simple_logger: ^0.1.0 copied to clipboard
OpenTelemetry log bridge for package:simple_logger. Hooks SimpleLogger.onLogged so every log call is mirrored into the OTel logs pipeline, inheriting trace_id/span_id.
Changelog #
0.1.0 - 2026-08-10 #
Added #
attachOTelSimpleLogger(logger)— installs anonLoggedcallback on aSimpleLoggerthat mirrors every record into the OpenTelemetry logs pipeline. Returns a detach closure.- Severity mapping from
package:loggingLevelto OTelSeverity. code.function/code.lineno/code.filepathattributes when caller info is available;exception.type/exception.message/exception.stacktracewhenerror/stackTraceare passed.keepExisting:to chain a previously-installedonLoggedcallback.- Zone-scoped suppression via
runWithoutSimpleLoggerInstrumentation().