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

rm-hull / dot-block / 27077507900
61%

Build:
DEFAULT BRANCH: main
Ran 07 Jun 2026 12:02AM UTC
Jobs 1
Files 26
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

07 Jun 2026 12:01AM UTC coverage: 45.587% (-0.9%) from 46.49%
27077507900

push

github

web-flow
refactor: centralize error reporting via Sentry slog handler (#141)

* refactor: centralize error reporting via Sentry slog handler

- Introduce `SentryHandler` to automatically report errors to Sentry
  via `slog` record interception.
- Add `BridgeStandardLog` to redirect `log` output to `slog`.
- Remove manual `sentry.CaptureException` calls from application logic
  to reduce dependency coupling.

* refactor(logging): improve Sentry event capturing

Refactored `SentryHandler` to use `sentry.CaptureEvent` instead of
high-level wrappers. This allows:
- Explicit mapping of `slog.Level` to Sentry levels.
- Serialization of `time.Duration` values for better readability.
- Consistent inclusion of log attributes as `Extra` data in Sentry.

* refactor: improve sentry handler and add tests

- Extract `createSentryEvent` helper for better maintainability.
- Use `sentry.Event.SetException` and `Contexts` for proper Sentry
metadata.
- Add comprehensive unit tests using `testify`.
- Update `AGENTS.md` to mandate `testify` for assertions and consistent
  build/test verification.

* Update internal/app.go

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>

* refactor: rename dispatcher parameters and update sentry handler

- Rename `ctx` to `requestCtx` in `DNSDispatcher` methods for clarity.
- Update `SentryHandler` to capture `Warn` level logs and respect Sentry
 hubs from the context.

* refactor(logging): improve caller attribution in log bridge

Use `slog.NewRecord` with manual `runtime.Callers` to ensure the
structured logger reports the actual source of the log message
instead of the internal bridge implementation.

* refactor: improve logging and Sentry error handling

- `slogWriter`: Added source location reporting to standard log bridge.
- `SentryHandler`: Enabled attribute accumulation via `WithAttrs` and
updated threshold to `LevelError`.
- `sentryErrorHandler`: Simplified Gin middleware to use request... (continued)

62 of 180 new or added lines in 6 files covered. (34.44%)

1 existing line in 1 file now uncovered.

878 of 1926 relevant lines covered (45.59%)

925.52 hits per line

Uncovered Changes

Lines Coverage ∆ File
56
17.65
internal/logging/sentry_handler.go
23
0.0
0.0% internal/app.go
20
29.03
29.03% internal/logging/slog_helpers.go
18
0.0
0.0% main.go
1
86.33
-0.05% internal/forwarder/dispatcher.go

Coverage Regressions

Lines Coverage ∆ File
1
29.03
29.03% internal/logging/slog_helpers.go
Jobs
ID Job ID Ran Files Coverage
1 27077507900.1 07 Jun 2026 12:02AM UTC 26
45.59
GitHub Action Run
Source Files on build 27077507900
  • Tree
  • List 26
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 6adf5b91 on github
  • Prev Build on main (#27077225011)
  • Next Build on main (#27100017698)
  • 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