pub struct SemanticRefreshMetrics { /* private fields */ }Expand description
Bounded cumulative metrics for one semantic refresh ownership epoch.
Counts, byte sizes, outcomes, and elapsed time are retained. Source text, node identifiers, digests, vectors, provider identities, and error bodies are deliberately absent.
Implementations§
Source§impl SemanticRefreshMetrics
impl SemanticRefreshMetrics
pub fn ownership_epoch(&self) -> u64
Sourcepub fn attempted_runs(&self) -> u64
pub fn attempted_runs(&self) -> u64
Attempts that returned a terminal result.
A force-aborted future cannot contribute because it never settled.
pub fn published_runs(&self) -> u64
pub fn unchanged_runs(&self) -> u64
pub fn failed_runs(&self) -> u64
pub fn total_elapsed_ms(&self) -> u64
pub fn max_elapsed_ms(&self) -> u64
pub fn total_source_change_token_requests(&self) -> u64
pub fn total_source_change_token_observations(&self) -> u64
pub fn total_source_snapshot_requests(&self) -> u64
pub fn total_source_snapshot_node_reads(&self) -> u64
pub fn total_source_snapshot_bytes(&self) -> u64
pub fn total_embedding_cache_hits(&self) -> u64
pub fn total_embedding_inputs(&self) -> u64
pub fn total_embedding_input_bytes(&self) -> u64
Sourcepub fn total_provider_requests(&self) -> u64
pub fn total_provider_requests(&self) -> u64
Provider-adapter invocations, including retries and failed invocations.
This counter records work at Code’s adapter boundary. It does not prove that an adapter transmitted a remote request or incurred a charge.
Sourcepub fn total_provider_inputs(&self) -> u64
pub fn total_provider_inputs(&self) -> u64
Inputs offered to provider-adapter invocations; retries count again.
Sourcepub fn total_provider_input_bytes(&self) -> u64
pub fn total_provider_input_bytes(&self) -> u64
UTF-8 input bytes offered to provider-adapter invocations, including retries. This is not proof of remote transmission or billing.
Sourcepub fn total_publication_attempts(&self) -> u64
pub fn total_publication_attempts(&self) -> u64
Complete-partition publication calls that reached the index backend.
Rejected CAS publications count. Later invalidation cleanup does not.
Sourcepub fn total_publication_records(&self) -> u64
pub fn total_publication_records(&self) -> u64
Records offered by complete-partition publication attempts.
Rejected CAS publications count. Later invalidation cleanup does not.
pub fn recent_runs(&self) -> &[SemanticRefreshRunMetrics]
pub fn last_run(&self) -> Option<&SemanticRefreshRunMetrics>
Trait Implementations§
Source§impl Clone for SemanticRefreshMetrics
impl Clone for SemanticRefreshMetrics
Source§fn clone(&self) -> SemanticRefreshMetrics
fn clone(&self) -> SemanticRefreshMetrics
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SemanticRefreshMetrics
impl Debug for SemanticRefreshMetrics
Source§impl Default for SemanticRefreshMetrics
impl Default for SemanticRefreshMetrics
Source§fn default() -> SemanticRefreshMetrics
fn default() -> SemanticRefreshMetrics
impl Eq for SemanticRefreshMetrics
Source§impl PartialEq for SemanticRefreshMetrics
impl PartialEq for SemanticRefreshMetrics
Source§impl Serialize for SemanticRefreshMetrics
impl Serialize for SemanticRefreshMetrics
impl StructuralPartialEq for SemanticRefreshMetrics
Auto Trait Implementations§
impl Freeze for SemanticRefreshMetrics
impl RefUnwindSafe for SemanticRefreshMetrics
impl Send for SemanticRefreshMetrics
impl Sync for SemanticRefreshMetrics
impl Unpin for SemanticRefreshMetrics
impl UnsafeUnpin for SemanticRefreshMetrics
impl UnwindSafe for SemanticRefreshMetrics
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more