fix: add channel message timeouts, Telegram fallback, and fix identity/observer tests
Closes #184
This commit is contained in:
parent
be6474b815
commit
dca95cac7a
5 changed files with 89 additions and 30 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue