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

supabase / auth / 29937634573
72%

Build:
DEFAULT BRANCH: master
Ran 22 Jul 2026 04:26PM UTC
Jobs 1
Files 196
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

22 Jul 2026 04:21PM UTC coverage: 71.932% (+0.06%) from 71.869%
29937634573

push

github

web-flow
fix: consolidate error logs into single log entry (#2635)

## What kind of change does this PR introduce?

Reduce multiple log lines per request to a single line.

```bash
モ curl http://localhost:9999/admin/sso/providers | jq '.'
{
  "code": 401,
  "error_code": "no_authorization",
  "msg": "This endpoint requires a valid Bearer token"
}
```

## What is the current behavior?

```json
{"component":"api","error":"401: This endpoint requires a valid Bearer token","level":"warning","method":"GET","msg":"401: This endpoint requires a valid Bearer token","path":"/admin/sso/providers","referer":"http://localhost:3000","remote_addr":"127.0.0.1","request_id":"6f771103-e037-464d-951e-25a46ff2fce7","time":"2026-07-21T23:24:27Z"}
{"component":"api","duration":91167,"error_code":"no_authorization","level":"warning","method":"GET","msg":"request completed","path":"/admin/sso/providers","referer":"http://localhost:3000","remote_addr":"127.0.0.1","request_id":"6f771103-e037-464d-951e-25a46ff2fce7","status":401,"time":"2026-07-21T23:24:27Z"}
```

Errored requests used to emit two log lines:

1. an immediate one with the error message but no status/error_code
1. a second "request completed" line with status/error_code but no error
message.


https://linear.app/supabase/issue/AUTH-1289/consolidate-auth-error-logs-into-a-single-log-entry

## What is the new behavior?

Moves the error message onto the request-scoped log entry via
`observability.LogEntrySetField` so it rides along on the single
deferred completion log instead.

```json
{"component":"api","duration":184917,"error":"401: This endpoint requires a valid Bearer token","error_code":"no_authorization","level":"warning","method":"GET","msg":"request completed","path":"/admin/sso/providers","referer":"http://localhost:3000","remote_addr":"127.0.0.1","request_id":"f1cc79f2-da29-4213-880b-06c193734cf8","status":401,"time":"2026-07-21T23:25:36Z"}
```

## Additional context

18237 of 25353 relevant lines covered (71.93%)

666.93 hits per line

Coverage Regressions

Lines Coverage ∆ File
11
72.46
9.34% internal/api/errors.go
Jobs
ID Job ID Ran Files Coverage
1 29937634573.1 22 Jul 2026 04:26PM UTC 196
71.93
GitHub Action Run
Source Files on build 29937634573
  • Tree
  • List 196
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 47b3d942 on github
  • Prev Build on master (#29930047595)
  • Next Build on master (#30004692450)
  • Delete
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