fix(metrics): keep S3 op counts when chains are disabled (#2675)

Co-authored-by: houseme <housemecn@gmail.com>
This commit is contained in:
安正超
2026-04-25 09:24:53 +08:00
committed by GitHub
parent 13b4500212
commit f833cd9cbe
2 changed files with 110 additions and 19 deletions
+4 -4
View File
@@ -20,10 +20,10 @@ use std::str::FromStr;
use std::sync::LazyLock;
/// De-facto standard header keys.
const X_FORWARDED_FOR: &str = "x-forwarded-for";
const X_FORWARDED_PROTO: &str = "x-forwarded-proto";
const X_FORWARDED_SCHEME: &str = "x-forwarded-scheme";
const X_REAL_IP: &str = "x-real-ip";
pub const X_FORWARDED_FOR: &str = "x-forwarded-for";
pub const X_FORWARDED_PROTO: &str = "x-forwarded-proto";
pub const X_FORWARDED_SCHEME: &str = "x-forwarded-scheme";
pub const X_REAL_IP: &str = "x-real-ip";
/// RFC7239 defines a new "Forwarded: " header designed to replace the
/// existing use of X-Forwarded-* headers.