We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 13e0522 commit 39f13d0Copy full SHA for 39f13d0
agent/src/common/l7_protocol_log.rs
@@ -336,6 +336,7 @@ pub struct LogCache {
336
pub time: u64,
337
pub resp_status: L7ResponseStatus,
338
339
+ // if `on_blacklist` is true, this `LogCache` should be ignored when calculating perf stats
340
pub on_blacklist: bool,
341
342
// set merged to true when req and resp merge once
@@ -361,6 +362,9 @@ impl LogCache {
361
362
363
impl From<&LogCache> for L7PerfStats {
364
fn from(cache: &LogCache) -> Self {
365
+ if cache.on_blacklist {
366
+ return L7PerfStats::default();
367
+ }
368
let (request_count, response_count) = match cache.multi_merge_info.as_ref() {
369
Some(info) => (
370
if info.req_end { 1 } else { 0 },
0 commit comments