Skip to content

[Server] Log the method and path of each request with its request ID #2034

Open

Description

@shba24

Is your feature request related to a problem? Please describe.

When a request fails with a 5xx, server.log has one ERROR line with the cause and a request_id (#1999), but nothing in the log says which endpoint the request hit unless the access log is on. For example:

ERROR io.unitycatalog.server.exception.BaseExceptionHandler request_id=b69529ce5b4b0d3f - Request failed
io.unitycatalog.server.exception.BaseException: Failed to create directory: ...

Describe the solution you would like

Log one line when each request starts, with its method, path and request_id, for every request rather than only failed ones. The path comes from ctx.path(), which leaves out the query string, so query parameters stay out of the log. Any later line for the same request, including the 5xx ERROR, can then be tied to its endpoint through request_id.

Additional context

Raised in review of #1999: #1999 (comment)

Activity

  1. added
    enhancement
    on Oct 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions