Skip to content

Commit 2f97622

Browse files
authored
[registry] use per-namespace registry for platform specific metrics (#209)
Use per-namespace registry for platform specific metrics as well. For some reason, I missed this in #205 and it wasn't get caught during reviews as well.
1 parent 9f33f3f commit 2f97622

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

report/setup.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ func SetupMetrics(logger *logp.Logger, name, version string, opts ...OptionFunc)
9494
monitoring.NewFunc(opt.processMetrics, "runtime", ReportRuntime, monitoring.Report)
9595
monitoring.NewFunc(opt.processMetrics, "info", infoReporter(name, version), monitoring.Report)
9696

97-
setupPlatformSpecificMetrics(logger, processStats, systemMetrics, processMetrics)
97+
setupPlatformSpecificMetrics(logger, processStats, opt.systemMetrics, opt.processMetrics)
9898

9999
return nil
100100
}

0 commit comments

Comments
 (0)