MCPcopy Create free account
hub / github.com/featureform/featureform / GetObservedRowCount

Method GetObservedRowCount

metrics/metrics.go:143–149  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

141}
142
143func (p PromFeatureObserver) GetObservedRowCount() (int, error) {
144 var m = &dto.Metric{}
145 if err := p.Count.WithLabelValues(p.Name, p.Feature, p.Key, string(ONLINE_ROW_SERVE)).Write(m); err != nil {
146 return 0, err
147 }
148 return int(m.Counter.GetValue()), nil
149}
150
151func (p PromFeatureObserver) GetObservedErrorCount() (int, error) {
152 var m = &dto.Metric{}

Callers 1

TestMetricsFunction · 0.45

Calls 2

WriteMethod · 0.65
GetValueMethod · 0.45

Tested by 1

TestMetricsFunction · 0.36