Skip to content

fix: HTTP metrics report wrong status codes and double-count OFREP #2102

Closed

Description

@toddbaert

Found while reviewing #2092.

  1. HTTP metrics record every response as 200 (404s, 405s, 400s, etc.) on both 8013 and OFREP. responseWriterInterceptor lost its WriteHeader override in feat: refactor core module into multiple packages #530, and Measure builds attributes before the handler runs anyway (thanks @erka ).

  2. OFREP requests are recorded twice: once by otelhttp.NewHandler (correct status, route always /) and once by our metrics middleware (correct route, status always 200).

Activity

  1. added 3 commits that reference this issue on Oct 23, 2026
    69defb6
    123e698
    5e6e764
  2. added a commit that references this issue on Oct 26, 2026
    0a39a29
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