pub struct AgilePlusTrace { /* private fields */ }Expand description
A TracePort that POSTs events to the AgilePlus API.
The endpoint base URL is read from the AGILEPLUS_ENDPOINT env var at
construction time. HTTP errors are silently swallowed (trace shipping
must never fail a dispatch).
Implementations§
Source§impl AgilePlusTrace
impl AgilePlusTrace
Sourcepub fn from_env() -> Self
pub fn from_env() -> Self
Construct from the AGILEPLUS_ENDPOINT env var.
Panics if called outside a Tokio runtime context (uses
tokio::runtime::Handle::current()).
Sourcepub fn with_endpoint(endpoint: impl Into<String>) -> Self
pub fn with_endpoint(endpoint: impl Into<String>) -> Self
Construct with an explicit endpoint URL.
Trait Implementations§
Source§impl Clone for AgilePlusTrace
impl Clone for AgilePlusTrace
Source§fn clone(&self) -> AgilePlusTrace
fn clone(&self) -> AgilePlusTrace
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AgilePlusTrace
impl Debug for AgilePlusTrace
Source§impl TracePort for AgilePlusTrace
impl TracePort for AgilePlusTrace
Source§fn task_registered(&self, event: TaskRegistered)
fn task_registered(&self, event: TaskRegistered)
Called once when a task is accepted into the system.
Source§fn task_completed(&self, event: TaskCompleted)
fn task_completed(&self, event: TaskCompleted)
Called once when a task run concludes successfully.
Source§fn task_failed(&self, event: TaskFailed)
fn task_failed(&self, event: TaskFailed)
Called once when a task run concludes with a failure.
Auto Trait Implementations§
impl !RefUnwindSafe for AgilePlusTrace
impl !UnwindSafe for AgilePlusTrace
impl Freeze for AgilePlusTrace
impl Send for AgilePlusTrace
impl Sync for AgilePlusTrace
impl Unpin for AgilePlusTrace
impl UnsafeUnpin for AgilePlusTrace
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