pub trait Instrument: Send + Sync + 'static {
    type WatchUpdatesStream: Stream<Item = Result<Update, Status>> + Send + 'static;

    // Required method
    fn watch_updates<'life0, 'async_trait>(
        &'life0 self,
        request: Request<InstrumentRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<Self::WatchUpdatesStream>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Generated trait containing gRPC methods that should be implemented for use with InstrumentServer.

Required Associated Types§

source

type WatchUpdatesStream: Stream<Item = Result<Update, Status>> + Send + 'static

Server streaming response type for the WatchUpdates method.

Required Methods§

source

fn watch_updates<'life0, 'async_trait>( &'life0 self, request: Request<InstrumentRequest> ) -> Pin<Box<dyn Future<Output = Result<Response<Self::WatchUpdatesStream>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Produces a stream of updates about the behavior of the instrumented application.

Implementors§