mirror of
https://github.com/telemt/telemt.git
synced 2026-11-01 21:31:58 +03:00
API for WEB: bounded lifecycle and overload observability added
Co-Authored-By: brekotis <93345790+brekotis@users.noreply.github.com>
This commit is contained in:
@@ -183,6 +183,11 @@ impl WebSession {
|
||||
&& data_items <= item_limit - items
|
||||
};
|
||||
if !fits {
|
||||
if let Some(manager) = self.manager.upgrade() {
|
||||
manager.telemetry().record_rejection(
|
||||
crate::web::telemetry::WebRejectionReason::QueueSessionCapacity,
|
||||
);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
let Some(manager) = self.manager.upgrade() else {
|
||||
|
||||
Reference in New Issue
Block a user