We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5c7bc28 commit 754d39eCopy full SHA for 754d39e
1 file changed
flow/resource_monitor.go
@@ -88,8 +88,6 @@ func NewResourceMonitor(
88
89
rm.initSampler()
90
91
- rm.stats.Store(rm.collectStats())
92
-
93
go rm.monitor()
94
95
return rm
@@ -109,6 +107,8 @@ func (rm *ResourceMonitor) initSampler() {
109
107
default: // CPUUsageModeHeuristic
110
108
rm.sampler = &goroutineHeuristicSampler{}
111
}
+
+ rm.stats.Store(rm.collectStats())
112
113
114
// GetStats returns the current resource statistics
0 commit comments