Metrics: Remove support for using summaries instead of histogram for HTTP instrumentation (#49985)

Signed-off-by: bergquist <carl.bergquist@gmail.com>
This commit is contained in:
Carl Bergquist
2022-06-01 14:33:59 +02:00
committed by GitHub
parent f566958555
commit 9562fb389f
6 changed files with 20 additions and 69 deletions

View File

@@ -117,11 +117,6 @@ var (
State: FeatureStateAlpha,
RequiresDevMode: true,
},
{
Name: "disable_http_request_histogram",
Description: "Do not create histograms for http requests",
State: FeatureStateAlpha,
},
{
Name: "publicDashboards",
Description: "enables public access to dashboards",

View File

@@ -87,10 +87,6 @@ const (
// Show feature flags in the settings UI
FlagShowFeatureFlagsInUI = "showFeatureFlagsInUI"
// FlagDisableHttpRequestHistogram
// Do not create histograms for http requests
FlagDisableHttpRequestHistogram = "disable_http_request_histogram"
// FlagPublicDashboards
// enables public access to dashboards
FlagPublicDashboards = "publicDashboards"

View File

@@ -18,14 +18,13 @@ import (
func TestFeatureToggleFiles(t *testing.T) {
legacyNames := map[string]bool{
"httpclientprovider_azure_auth": true,
"service-accounts": true,
"database_metrics": true,
"live-config": true,
"live-pipeline": true,
"live-service-web-worker": true,
"prometheus_azure_auth": true,
"disable_http_request_histogram": true,
"httpclientprovider_azure_auth": true,
"service-accounts": true,
"database_metrics": true,
"live-config": true,
"live-pipeline": true,
"live-service-web-worker": true,
"prometheus_azure_auth": true,
}
t.Run("verify files", func(t *testing.T) {