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

Nebo15 / logger_json
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: cd/encode-error-metadata-upstream
DEFAULT BRANCH: master
Repo Added 09 Apr 2017 03:06PM UTC
Files 17
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

LAST BUILD ON BRANCH cd/encode-error-metadata-upstream
branch: cd/encode-error-metadata-upstream
CHANGE BRANCH
x
Reset
  • cd/encode-error-metadata-upstream
  • 0.2.0
  • 0.3.0
  • 0.4.0
  • 0.5.0
  • 1.1.0
  • 1.2.0
  • 1.3.0
  • 2.0.1
  • 3.0.1
  • 3.0.2
  • 3.0.3
  • 3.1.0
  • 3.1.1
  • 3.1.2
  • 3.2.0
  • 3.3.0
  • 4.0.0
  • 4.1.0
  • 4.2.0
  • 5.0.0
  • 5.1.0
  • 5.1.1
  • 5.1.2
  • al/datadog-error-tracker
  • fix-warning-on-binary-matching
  • fix/format-affected-user-with-integer-values
  • fix/render-file-as-string
  • master
  • patch-1
  • refs/pull/146/merge
  • use-json-elixir-1-18

16 Jul 2026 07:51PM UTC coverage: 100.0% (+0.3%) from 99.737%
16f11024515e953d24c810357d706a5220bf3238-PR-174

Pull #174

github

doughsay
fix(datadog): Encode metadata error value before embedding in error field

format_error/4 embedded the raw metadata :error value into the log line,
bypassing RedactorEncoder. A non-JSON-encodable term (e.g. an {:error,
reason} tuple) then crashed the encoder, and because maybe_merge is
left-biased the encoded copy of the metadata could not overwrite it. The
formatter crash surfaces as "FORMATTER CRASH: ..." fallback lines and the
original log event is lost entirely.

Run the value through encode/2 (which also applies redactors), matching
how every other part of the line is built.
Pull Request #174: fix(datadog): Encode metadata error value before embedding in error field

4 of 4 new or added lines in 1 file covered. (100.0%)

380 of 380 relevant lines covered (100.0%)

2163.1 hits per line

Relevant lines Covered
Build:
Build:
380 RELEVANT LINES 380 COVERED LINES
2163.1 HITS PER LINE
Source Files on cd/encode-error-metadata-upstream
  • Tree
  • List 17
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
16f11024... cd/encode-error-metadata-upstream fix(datadog): Encode metadata error value before embedding in error field format_error/4 embedded the raw metadata :error value into the log line, bypassing RedactorEncoder. A non-JSON-encodable term (e.g. an {:error, reason} tuple) then crashed ... Pull #174 05 Aug 2026 01:46AM UTC doughsay github
100.0
See All Builds (349)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc