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

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

Build:
Build:
LAST BUILD BRANCH: 002-expand-dynamic-config
DEFAULT BRANCH: main
Ran 06 Nov 2025 05:09AM 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% (+0.9%) from 54.532%
db34453cc511f38b270f7f582522833462bd054c

push

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.

39 of 72 new or added lines in 9 files covered. (54.17%)

5 existing lines in 3 files now uncovered.

411 of 741 relevant lines covered (55.47%)

11.84 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
0.0
0.0% lib/caddy/admin.ex
2
41.67
0.0% lib/caddy/config_provider.ex
6
63.33
-11.67% lib/caddy/telemetry.ex
7
67.97
0.0% lib/caddy/config.ex
8
61.9
lib/caddy/logger/handler.ex
8
47.96
0.54% lib/caddy/server.ex

Uncovered Existing Lines

Lines Coverage ∆ File
1
0.0
0.0% lib/caddy/admin.ex
1
47.96
0.54% lib/caddy/server.ex
3
67.97
0.0% lib/caddy/config.ex
Jobs
ID Job ID Ran Files Coverage
1 db34453cc511f38b270f7f582522833462bd054c.1 06 Nov 2025 05:09AM UTC 20
55.47
GitHub Action Run
2 db34453cc511f38b270f7f582522833462bd054c.2 06 Nov 2025 05:09AM UTC 20
55.47
GitHub Action Run
3 db34453cc511f38b270f7f582522833462bd054c.3 06 Nov 2025 05:09AM UTC 20
55.47
GitHub Action Run
4 db34453cc511f38b270f7f582522833462bd054c.4 06 Nov 2025 05:09AM UTC 20
55.47
GitHub Action Run
Source Files on build db34453cc511f38b270f7f582522833462bd054c
  • Tree
  • List 20
  • Changed 8
  • Source Changed 0
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • db34453c on github
  • Prev Build on develop (#7CCEBCFD...)
  • Next Build on develop (#45E291E6...)
  • 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