From 37546bba65cd8d9fa6ced99893137b4958903682 Mon Sep 17 00:00:00 2001 From: Kunal Gupta <39487888+iamKunalGupta@users.noreply.github.com> Date: Wed, 30 Oct 2024 09:59:00 +0530 Subject: [PATCH] refactor: update temporal metrics list env (#2204) --- flow/otel_metrics/env.go | 4 ++-- flow/otel_metrics/otel_manager.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/flow/otel_metrics/env.go b/flow/otel_metrics/env.go index f388bf664..81b5d0c3e 100644 --- a/flow/otel_metrics/env.go +++ b/flow/otel_metrics/env.go @@ -6,6 +6,6 @@ func GetPeerDBOtelMetricsNamespace() string { return peerdbenv.GetEnvString("PEERDB_OTEL_METRICS_NAMESPACE", "") } -func GetPeerDBOtelMetricsExportListEnv() string { - return peerdbenv.GetEnvString("PEERDB_OTEL_METRICS_EXPORT_LIST", "") +func GetPeerDBOtelTemporalMetricsExportListEnv() string { + return peerdbenv.GetEnvString("PEERDB_OTEL_TEMPORAL_METRICS_EXPORT_LIST", "") } diff --git a/flow/otel_metrics/otel_manager.go b/flow/otel_metrics/otel_manager.go index f69a4aa30..becf13a16 100644 --- a/flow/otel_metrics/otel_manager.go +++ b/flow/otel_metrics/otel_manager.go @@ -50,7 +50,7 @@ func setupGrpcOtelMetricsExporter() (sdkmetric.Exporter, error) { } func temporalMetricsFilteringView() sdkmetric.View { - exportListString := GetPeerDBOtelMetricsExportListEnv() + exportListString := GetPeerDBOtelTemporalMetricsExportListEnv() slog.Info("Found export list for temporal metrics", slog.String("exportList", exportListString)) // Special case for exporting all metrics if exportListString == "__ALL__" {