Skip to content

Observability: has_query always false, log-level GET stale, REST audit has no row count, validate-config creates the audit file #279

Backlog

Description

@jrosskopf
  • flapi.url.has_query is always false: raw_path = req.url, which has no query string (src/request_context_middleware.cpp:185).
  • GET /api/v1/_config/log-level reports info regardless of the startup level until a PUT (src/include/config_service.hpp:320).
  • REST requests never record a row count: the audit has row_count: -1 and there is no db.response.returned_rows. MCP records it.
  • flapi.result.bytes (src/include/trace_semconv.hpp) is never set; the size is on http.response.body.size. The docs are fixed.
  • --validate-config creates the audit file, and fails when its directory is missing.
  • A REST GET of a remote file fetches it twice (main query plus count query, plus a HEAD each); worth checking.
  • X-Forwarded-For is never read: behind a load balancer, rate limiting and audit see the proxy IP.
    Found while writing and reviewing the task guides (docs: Task guides for every feature area, run in CI and aligned with flapi.io #272).

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions