zitadel/internal/api/http/middleware
Elio Bischof 7573e0ea8f
feat: add http_server_return_code_counter metric to gateway (#8173)
# Which Problems Are Solved

The metric `http_server_return_code_counter` doesn't record calls to the
gRPC gateway.

# How the Problems Are Solved

The DefaultMetricsHandler that is used for the gPRC gateway doesn't
record `http_server_return_code_counter`.
Instead of the DefaultMetricsHandler, a custom metrics handler which
includes `http_server_return_code_counter` is created for the gRPC
gateway

# Additional Changes

The DefaultMetricsHandler function is removed, as it is no longer used.

# Additional Context

Reported by a customer

---------

Co-authored-by: Silvan <silvan.reusser@gmail.com>
2024-07-04 09:37:23 +00:00
..
access_interceptor.go fix(setup): init projections (#7194) 2024-01-25 17:28:20 +01:00
activity_interceptor.go feat: add SYSTEM_OWNER role (#6765) 2023-10-25 15:10:45 +00:00
auth_interceptor.go feat: add SYSTEM_OWNER role (#6765) 2023-10-25 15:10:45 +00:00
cache_interceptor_test.go fix: improvements for login and oidc (#227) 2020-06-17 08:06:40 +02:00
cache_interceptor.go fix: caching of assets (correct headers and versioned avatar and variables.css url) (#4118) 2022-08-16 05:04:36 +00:00
call_interceptor.go perf: query data AS OF SYSTEM TIME (#5231) 2023-02-27 22:36:43 +01:00
cors_interceptor.go fix(CORS): add X-Requested-With to Access-Control-Request-Headers (#5009) 2023-01-09 13:37:10 +01:00
csp.go feat: enable iframe use (#4766) 2022-12-14 07:17:36 +01:00
instance_interceptor_test.go feat: impersonation roles (#7442) 2024-02-28 10:21:11 +00:00
instance_interceptor.go fix: exclude db connection error details (#7785) 2024-04-23 08:35:25 +00:00
metrics_interceptor.go feat: add http_server_return_code_counter metric to gateway (#8173) 2024-07-04 09:37:23 +00:00
middleware_test.go feat: restrict languages (#6931) 2023-12-05 11:12:01 +00:00
origin_interceptor_test.go fix(origin): fall back to ExternalSecure (#7228) 2024-01-15 16:44:35 +00:00
origin_interceptor.go fix(origin): fall back to ExternalSecure (#7228) 2024-01-15 16:44:35 +00:00
robots_tag_interceptor_test.go fix: introduce measures to avoid bots crawling and indexing activities (#5728) 2023-05-05 10:25:02 +02:00
robots_tag_interceptor.go fix: introduce measures to avoid bots crawling and indexing activities (#5728) 2023-05-05 10:25:02 +02:00
security_headers.go feat: enable iframe use (#4766) 2022-12-14 07:17:36 +01:00
telemetry_interceptor.go refactor(fmt): run gci on complete project (#7557) 2024-04-03 10:43:43 +00:00
user_agent_cookie.go fix: set user agent cookie on host only (without subdomains) (#7297) 2024-02-15 07:53:59 +01:00