MCPcopy Create free account
hub / github.com/apache/trafficserver / doCacheLookup

Method doCacheLookup

src/cripts/Bundles/LogsMetrics.cc:170–181  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168}
169
170void
171LogsMetrics::doCacheLookup(cripts::Context *context)
172{
173 auto status = transaction.LookupStatus();
174
175 // .label(str)
176 if (_label.length() > 0) {
177 if (status >= 0 && status <= 3) {
178 instance.metrics[status]->Increment(); // This assumes the 4 cache stats are first
179 }
180 }
181}
182
183void
184LogsMetrics::doRemap(cripts::Context *context)

Callers

nothing calls this directly

Calls 3

LookupStatusMethod · 0.80
IncrementMethod · 0.80
lengthMethod · 0.45

Tested by

no test coverage detected