pub struct TraceClient { /* private fields */ }
Implementations§
Source§impl TraceClient
impl TraceClient
pub fn from_env() -> Result<Option<Self>>
pub fn from_env_or_local() -> Result<Self>
pub fn local() -> Self
pub fn new(client: Client<TraceProtocol>, session_id: Uuid) -> Self
pub fn connect_quinn_insecure( remote: SocketAddr, session_id: Uuid, ) -> Result<Self>
pub fn connect_quinn_endpoint( endpoint: Endpoint, remote: SocketAddr, session_id: Uuid, ) -> Self
pub async fn connect_iroh(remote: NodeId, session_id: Uuid) -> Result<Self>
pub fn connect_iroh_endpoint( endpoint: Endpoint, remote: impl Into<NodeAddr>, session_id: Uuid, ) -> Self
pub async fn init_and_start_trace(&self, name: &str) -> Result<ActiveTrace>
pub async fn init_trace( &self, info: TraceInfo, setup_data: Option<Bytes>, ) -> Result<Uuid>
pub async fn get_trace(&self, name: String) -> Result<GetTraceResponse>
pub async fn close_trace( &self, trace_id: Uuid, result: Result<(), String>, ) -> Result<()>
pub async fn get_session( &self, session_id: Uuid, ) -> Result<Option<GetSessionResponse>>
pub async fn put_logs( &self, trace_id: Uuid, scope: Scope, json_lines: Vec<String>, ) -> Result<()>
pub async fn start_node( &self, trace_id: Uuid, node_info: NodeInfo, ) -> Result<ActiveTrace>
Trait Implementations§
Source§impl Clone for TraceClient
impl Clone for TraceClient
Source§fn clone(&self) -> TraceClient
fn clone(&self) -> TraceClient
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for TraceClient
impl !RefUnwindSafe for TraceClient
impl Send for TraceClient
impl Sync for TraceClient
impl Unpin for TraceClient
impl !UnwindSafe for TraceClient
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