pub struct ObservableProcessor { /* private fields */ }Expand description
Unified observability processor wrapping metrics, tracing, and logging
Implementations§
Source§impl ObservableProcessor
impl ObservableProcessor
Sourcepub fn builder(
processor: Arc<dyn MessageProcessor + Send + Sync>,
) -> ObservabilityBuilder
pub fn builder( processor: Arc<dyn MessageProcessor + Send + Sync>, ) -> ObservabilityBuilder
Create a new builder for observable processor
Trait Implementations§
Source§impl MessageProcessor for ObservableProcessor
impl MessageProcessor for ObservableProcessor
Source§fn process_message<'life0, 'async_trait>(
&'life0 self,
message: Message,
) -> Pin<Box<dyn Future<Output = Option<Response>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn process_message<'life0, 'async_trait>(
&'life0 self,
message: Message,
) -> Pin<Box<dyn Future<Output = Option<Response>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Process a single JSON-RPC message
Source§fn get_capabilities(&self) -> ProcessorCapabilities
fn get_capabilities(&self) -> ProcessorCapabilities
Get processor capabilities
Source§fn process_batch<'life0, 'async_trait>(
&'life0 self,
messages: Vec<Message>,
) -> Pin<Box<dyn Future<Output = Vec<Response>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn process_batch<'life0, 'async_trait>(
&'life0 self,
messages: Vec<Message>,
) -> Pin<Box<dyn Future<Output = Vec<Response>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Process a batch of JSON-RPC messages
Source§fn supports_batching(&self) -> bool
fn supports_batching(&self) -> bool
Check if batch processing is supported
Auto Trait Implementations§
impl Freeze for ObservableProcessor
impl !RefUnwindSafe for ObservableProcessor
impl Send for ObservableProcessor
impl Sync for ObservableProcessor
impl Unpin for ObservableProcessor
impl UnsafeUnpin for ObservableProcessor
impl !UnwindSafe for ObservableProcessor
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more