Skip to content

Improve request/response log field names#10

Merged
dillonstreator merged 3 commits into
mainfrom
improve/request-response-log-field-names
Jul 24, 2026
Merged

Improve request/response log field names#10
dillonstreator merged 3 commits into
mainfrom
improve/request-response-log-field-names

Conversation

@dillonstreator

@dillonstreator dillonstreator commented Jul 24, 2026

Copy link
Copy Markdown
Member

Summary

  • Rename Fastify defaults (reqId, responseTime, statusCode, remoteAddress, etc.) to clearer structured-log names
  • Keep Fastifys req/res nesting with short relative fields (method, path, status_code, ...) and top-level request_id/duration_ms`

Test plan

  • pnpm test passes
  • Hit /hi and confirm logs include request_id, duration_ms, req.method, req.path, and res.status_code
  • Confirm error responses still log with the updated res serializer fields

dillonstreator and others added 2 commits July 24, 2026 10:40
…ions.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@dillonstreator dillonstreator changed the title Align request/response log fields with OpenTelemetry conventions Improve request/response log field names Jul 24, 2026
Co-authored-by: Cursor <cursoragent@cursor.com>
@dillonstreator
dillonstreator merged commit 138b0b1 into main Jul 24, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant