pub enum ObserveEvent {
RequestStarted {
request_id: String,
downstream_user_agent: Option<String>,
},
AuthnComplete {
principal_id: String,
kind: PrincipalKind,
},
UpstreamChosen {
upstream: Upstream,
},
Chunk {
batch_index: u64,
event_count: usize,
total_bytes: usize,
},
RequestFinished {
status: StatusCode,
input_tokens: Option<u64>,
output_tokens: Option<u64>,
cache_creation_input_tokens: Option<u64>,
cache_read_input_tokens: Option<u64>,
duration_ms: u64,
},
Error {
code: String,
message: String,
source: String,
},
}Expand description
Observability events emitted by the lifecycle.
Variants§
RequestStarted
Downstream request has entered the proxy.
Fields
AuthnComplete
Authentication completed successfully.
Fields
§
kind: PrincipalKindAuthenticated principal kind.
UpstreamChosen
Router selected an upstream.
Chunk
A batch of streamed events passed through the relay.
Fields
RequestFinished
Request finished successfully or with an upstream HTTP error.
Fields
§
status: StatusCodeFinal HTTP status code.
Error
Lifecycle or plugin error was observed.
Trait Implementations§
Source§impl Clone for ObserveEvent
impl Clone for ObserveEvent
Source§fn clone(&self) -> ObserveEvent
fn clone(&self) -> ObserveEvent
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 ObserveEvent
impl Debug for ObserveEvent
impl Eq for ObserveEvent
Source§impl PartialEq for ObserveEvent
impl PartialEq for ObserveEvent
Source§fn eq(&self, other: &ObserveEvent) -> bool
fn eq(&self, other: &ObserveEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ObserveEvent
Auto Trait Implementations§
impl Freeze for ObserveEvent
impl RefUnwindSafe for ObserveEvent
impl Send for ObserveEvent
impl Sync for ObserveEvent
impl Unpin for ObserveEvent
impl UnsafeUnpin for ObserveEvent
impl UnwindSafe for ObserveEvent
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