You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: collect/cache/cache.go
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -54,7 +54,7 @@ type DefaultInMemCache struct {
54
54
constDefaultInMemCacheCapacity=10000
55
55
56
56
varcollectCacheMetrics= []metrics.Metadata{
57
-
{Name: "collect_cache_entries", Type: metrics.Histogram, Unit: metrics.Dimensionless, Description: "The number of traces currently stored in the cache"},
57
+
{Name: "worker_cache_entries", Type: metrics.Histogram, Unit: metrics.Dimensionless, Description: "The number of traces currently stored in the trace cache per worker"},
58
58
}
59
59
60
60
funcNewInMemCache(
@@ -114,7 +114,7 @@ func (d *DefaultInMemCache) GetCacheCapacity() int {
114
114
// It removes and returns them.
115
115
// If a filter is provided, it will be called with each trace to determine if it should be skipped.
varErrWouldBlock=errors.New("Dropping span as channel buffer is full. Span will not be processed and will be lost.")
@@ -113,6 +115,8 @@ type InMemCollector struct {
113
115
donechanstruct{}
114
116
115
117
hostnamestring
118
+
119
+
memMetricSample []rtmetrics.Sample// Memory monitoring using runtime/metrics
116
120
}
117
121
118
122
// These are the names of the metrics we use to track the number of events sent to peers through the router.
@@ -130,6 +134,7 @@ var inMemCollectorMetrics = []metrics.Metadata{
130
134
{Name: "collector_incoming_queue_length", Type: metrics.Gauge, Unit: metrics.Dimensionless, Description: "number of spans in the incoming queue"},
131
135
{Name: "collector_peer_queue", Type: metrics.Histogram, Unit: metrics.Dimensionless, Description: "number of spans currently in the peer queue"},
132
136
{Name: "collector_cache_size", Type: metrics.Gauge, Unit: metrics.Dimensionless, Description: "number of traces currently stored in the trace cache"},
137
+
{Name: "collect_cache_entries", Type: metrics.Histogram, Unit: metrics.Dimensionless, Description: "Total number of traces currently stored in the cache from all workers"},
0 commit comments