fix: add channel message timeouts, Telegram fallback, and fix identity/observer tests

Closes #184
This commit is contained in:
Argenis 2026-02-15 12:31:40 -05:00 committed by GitHub
parent be6474b815
commit dca95cac7a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 89 additions and 30 deletions

View file

@ -37,7 +37,7 @@ pub enum ObserverMetric {
}
/// Core observability trait — implement for any backend
pub trait Observer: Send + Sync {
pub trait Observer: Send + Sync + 'static {
/// Record a discrete event
fn record_event(&self, event: &ObserverEvent);
@ -52,9 +52,6 @@ pub trait Observer: Send + Sync {
/// Downcast to `Any` for backend-specific operations
fn as_any(&self) -> &dyn std::any::Any where Self: Sized {
// Default implementation returns a placeholder that will fail on downcast.
// Implementors should override this to return `self`.
struct Placeholder;
std::any::TypeId::of::<Placeholder>()
self
}
}