Skip to content

Commit

Permalink
refactor: update temporal metrics list env (#2204)
Browse files Browse the repository at this point in the history
  • Loading branch information
iamKunalGupta authored Oct 30, 2024
1 parent b23911e commit 37546bb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions flow/otel_metrics/env.go
Original file line number Diff line number Diff line change
Expand Up @@ -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", "")
}
2 changes: 1 addition & 1 deletion flow/otel_metrics/otel_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -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__" {
Expand Down

0 comments on commit 37546bb

Please sign in to comment.