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__" {