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

Logflare / logflare / 33563286823-1
83%

Build:
DEFAULT BRANCH: main
Ran 01 Sep 2026 10:00PM UTC
Jobs 1
Files 459
Run time 2min
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

01 Sep 2026 09:51PM UTC coverage: 82.181% (+0.03%) from 82.151%
33563286823-1

push

github

web-flow
feat: add ndjson payload format option to webhook backend (#3893)

* feat: add ndjson payload format option to webhook backend

The webhook backend gains a `format` config option. `json` (default)
keeps the current JSON array payload. `ndjson` sends newline-delimited
JSON, one event body per line, with the `application/x-ndjson` content
type. A user-configured `content-type` header takes precedence.

The option is implemented through `transform_config/1`, the existing
mechanism for payload shape and derived headers. The shared Pipeline is
unchanged, and `test_connection/1` sends a format-correct probe.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* fix: address PR review on the webhook ndjson format

- Normalize the stored header keys in `transform_config/1` before the
  content-type is added. A config that holds "Content-Type" no longer ships a
  duplicate header.
- Pattern match on the ndjson format instead of an `if` in `transform_config/1`.
- Reuse `NdjsonFormatter.encode/1` in place of a second implementation.
- Extract `format_payload/2`, shared by `test_connection/1` and
  `Pipeline.handle_batch/4`.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UeRcBGtdgk6tUX5gJohbTB

---------

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>

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

4 existing lines in 3 files now uncovered.

14657 of 17835 relevant lines covered (82.18%)

2167.42 hits per line

Coverage Regressions

Lines Coverage ∆ File
2
59.57
-4.26% lib/logflare/sources/source/slack_hook_server/slack_hook_server.ex
1
88.14
-0.56% lib/logflare/backends/buffer_producer.ex
1
14.29
-7.14% lib/logflare/system_metrics/cluster.ex
Jobs
ID Job ID Ran Files Coverage
1 33563286823-1.1 01 Sep 2026 10:00PM UTC 459
82.18
GitHub Action Run
Source Files on build 33563286823-1
  • Tree
  • List 459
  • Changed 8
  • Source Changed 2
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #33563286...
  • 5fffed8b on github
  • Prev Build on main (#33543210...)
  • Next Build on main (#33670961...)
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