• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ausimian / loki_logger_handler / f2bb17b99f97ebe7482a64939252e4c3bc2bd8d5-PR-6
94%
main: 94%

Build:
Build:
LAST BUILD BRANCH: ci/run-precommit
DEFAULT BRANCH: main
Ran 25 May 2026 02:44AM UTC
Jobs 1
Files 11
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

25 May 2026 02:44AM UTC coverage: 94.249% (+0.2%) from 94.02%
f2bb17b99f97ebe7482a64939252e4c3bc2bd8d5-PR-6

Pull #6

github

ausimian
fix: prevent a single bad event from removing the handler

A malformed log event could raise inside Formatter.format/3, which runs
inline in Handler.log/2. Erlang's logger removes a handler whose log/2
raises, so one bad event silently disabled Loki logging for the lifetime
of the node.

Wrap the format step in a rescue: on failure the handler buffers a
best-effort fallback entry (level label + inspected message) and emits a
[:loki_logger_handler, :format, :error] telemetry event instead of
letting the exception propagate. Also add catch-all clauses to
format_message/2, the format_report/2 report_cb case, and
extract_timestamp/1 so unexpected-but-recoverable shapes degrade
gracefully rather than raising.

Closes #2
Pull Request #6: fix: prevent a single bad event from removing the handler

13 of 13 new or added lines in 2 files covered. (100.0%)

295 of 313 relevant lines covered (94.25%)

29.67 hits per line

Jobs
ID Job ID Ran Files Coverage
1 f2bb17b99f97ebe7482a64939252e4c3bc2bd8d5-PR-6.1 25 May 2026 02:44AM UTC 11
94.25
GitHub Action Run
Source Files on build f2bb17b99f97ebe7482a64939252e4c3bc2bd8d5-PR-6
  • Tree
  • List 11
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #6
  • PR Base - main (#B9F3EBFB...)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc