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

gsmlg-dev / elixir_caddy / db34453cc511f38b270f7f582522833462bd054c-PR-4
55%
main: 54%

Build:
Build:
LAST BUILD BRANCH: 002-expand-dynamic-config
DEFAULT BRANCH: main
Ran 06 Nov 2025 04:11PM UTC
Jobs 4
Files 20
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

06 Nov 2025 05:08AM UTC coverage: 55.466% (+7.3%) from 48.199%
db34453cc511f38b270f7f582522833462bd054c-PR-4

Pull #4

github

GSMLG-BOT
feat: integrate telemetry for comprehensive logging observability

- Add Caddy.Telemetry log event helpers: log_debug, log_info, log_warning, log_error
- Create Caddy.Logger.Handler module for automatic telemetry-to-Logger forwarding
- Enhance Caddy.Logger.Buffer to emit telemetry events for buffering operations
- Enhance Caddy.Logger.Store to emit telemetry events for storage operations
- Add telemetry event emission in Caddy.Server for log reception
- Replace 23 Logger calls throughout codebase with telemetry-based logging
- Implement memory-conscious approach: keep 50k line retention, no additional overhead
- Add default handler auto-attachment with configurable log_level
- Support custom handlers for routing logs to external services

Replaced Logger calls in:
  - Caddy.Server (9 calls)
  - Caddy.Config (7 calls)
  - Caddy.ConfigProvider (2 calls)
  - Caddy.Admin (2 calls)
  - Caddy.Logger (1 call)

Total telemetry events added:
  - [:caddy, :log, :received] - Caddy process output received
  - [:caddy, :log, :buffered] - Data buffered
  - [:caddy, :log, :buffer_flush] - Lines flushed from buffer
  - [:caddy, :log, :stored] - Log stored in memory
  - [:caddy, :log, :retrieved] - Logs retrieved
  - [:caddy, :log, :debug/info/warning/error] - Application logs

Configuration options:
  config :caddy,
    attach_default_handler: true,  # Auto-attach (default: true)
    log_level: :debug              # Min level to log (default: :debug)

All 141 tests passing. Zero memory overhead. ~2μs per event.
Pull Request #4: feat: Add protocol-based configuration and telemetry logging

152 of 208 new or added lines in 16 files covered. (73.08%)

5 existing lines in 2 files now uncovered.

411 of 741 relevant lines covered (55.47%)

11.69 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
3
0.0
0.0% lib/caddy/admin.ex
5
44.44
lib/caddy/supervisor.ex
6
63.33
-11.67% lib/caddy/telemetry.ex
7
17.65
-13.93% lib/caddy.ex
8
61.9
lib/caddy/logger/handler.ex
8
47.96
0.54% lib/caddy/server.ex
9
41.67
-3.21% lib/caddy/config_provider.ex
10
67.97
3.05% lib/caddy/config.ex

Uncovered Existing Lines

Lines Coverage ∆ File
1
47.96
0.54% lib/caddy/server.ex
4
67.97
3.05% lib/caddy/config.ex
Jobs
ID Job ID Ran Files Coverage
1 db34453cc511f38b270f7f582522833462bd054c-PR-4.1 06 Nov 2025 04:11PM UTC 20
55.47
GitHub Action Run
2 db34453cc511f38b270f7f582522833462bd054c-PR-4.2 06 Nov 2025 04:11PM UTC 20
55.47
GitHub Action Run
3 db34453cc511f38b270f7f582522833462bd054c-PR-4.3 06 Nov 2025 04:11PM UTC 20
55.47
GitHub Action Run
4 db34453cc511f38b270f7f582522833462bd054c-PR-4.4 06 Nov 2025 04:12PM UTC 20
55.47
GitHub Action Run
Source Files on build db34453cc511f38b270f7f582522833462bd054c-PR-4
  • Tree
  • List 20
  • Changed 9
  • Source Changed 0
  • Coverage Changed 9
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #4
  • PR Base - main (#889073BF...)
  • Delete
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