metrics: reduce gc pressure (#5530)

This commit is contained in:
Denis Mishin 2025-03-18 13:48:49 -04:00 committed by GitHub
parent 562101ae03
commit 5ef16bcd28
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 393 additions and 23 deletions

View file

@ -22,6 +22,9 @@ var (
// is deprecated pending removal in a future release, but this flag allows a temporary
// opt-out from the deprecation.
RuntimeFlagPomeriumJWTEndpoint = runtimeFlag("pomerium_jwt_endpoint", false)
// RuntimeFlagAddExtraMetricsLabels enables adding extra labels to metrics (host and installation id)
RuntimeFlagAddExtraMetricsLabels = runtimeFlag("add_extra_metrics_labels", true)
)
// RuntimeFlag is a runtime flag that can flip on/off certain features