Skip to content

Commit 9db8449

Browse files
lzf575kylewanginchina
authored andcommitted
feat: whether session aggregation is enabled for WASM.
1 parent b4f9613 commit 9db8449

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

agent/src/plugin/mod.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -626,6 +626,12 @@ impl L7ProtocolInfoInterface for CustomInfo {
626626
})
627627
}
628628

629+
fn needs_session_aggregation(&self) -> bool {
630+
// Returns true if `is_async` is None (not set) or Some(false).
631+
// Returns false only if `is_async` is explicitly set to Some(true).
632+
!self.is_async.unwrap_or(false)
633+
}
634+
629635
fn is_tls(&self) -> bool {
630636
false
631637
}

0 commit comments

Comments
 (0)