pub struct ClientStatsPayload { /* private fields */ }Expand description
Tracer-level stats payload.
Groups stats by tracer/container identity (hostname, env, version, container_id).
Implementations§
Source§impl ClientStatsPayload
impl ClientStatsPayload
Sourcepub fn new(
hostname: impl Into<MetaString>,
env: impl Into<MetaString>,
version: impl Into<MetaString>,
) -> Self
pub fn new( hostname: impl Into<MetaString>, env: impl Into<MetaString>, version: impl Into<MetaString>, ) -> Self
Creates a new ClientStatsPayload with the required identity fields.
Sourcepub fn with_stats(self, stats: Vec<ClientStatsBucket>) -> Self
pub fn with_stats(self, stats: Vec<ClientStatsBucket>) -> Self
Sets the stats buckets.
Sourcepub fn with_tracer_version(self, tracer_version: impl Into<MetaString>) -> Self
pub fn with_tracer_version(self, tracer_version: impl Into<MetaString>) -> Self
Sets the tracer version.
Sourcepub fn with_runtime_id(self, runtime_id: impl Into<MetaString>) -> Self
pub fn with_runtime_id(self, runtime_id: impl Into<MetaString>) -> Self
Sets the runtime identifier.
Sourcepub fn with_sequence(self, sequence: u64) -> Self
pub fn with_sequence(self, sequence: u64) -> Self
Sets the message sequence number.
Sourcepub fn with_agent_aggregation(
self,
agent_aggregation: impl Into<MetaString>,
) -> Self
pub fn with_agent_aggregation( self, agent_aggregation: impl Into<MetaString>, ) -> Self
Sets the agent aggregation key.
Sourcepub fn with_service(self, service: impl Into<MetaString>) -> Self
pub fn with_service(self, service: impl Into<MetaString>) -> Self
Sets the main service name.
Sourcepub fn with_container_id(self, container_id: impl Into<MetaString>) -> Self
pub fn with_container_id(self, container_id: impl Into<MetaString>) -> Self
Sets the container identifier.
Sets the orchestrator tags.
Sourcepub fn with_git_commit_sha(self, git_commit_sha: impl Into<MetaString>) -> Self
pub fn with_git_commit_sha(self, git_commit_sha: impl Into<MetaString>) -> Self
Sets the git commit SHA.
Sourcepub fn with_image_tag(self, image_tag: impl Into<MetaString>) -> Self
pub fn with_image_tag(self, image_tag: impl Into<MetaString>) -> Self
Sets the container image tag.
Sets the process tags hash.
Sets the process tags.
Sourcepub fn stats(&self) -> &[ClientStatsBucket]
pub fn stats(&self) -> &[ClientStatsBucket]
Returns the stats buckets.
Sourcepub fn tracer_version(&self) -> &str
pub fn tracer_version(&self) -> &str
Returns the tracer version.
Sourcepub fn runtime_id(&self) -> &str
pub fn runtime_id(&self) -> &str
Returns the runtime identifier.
Sourcepub fn agent_aggregation(&self) -> &str
pub fn agent_aggregation(&self) -> &str
Returns the agent aggregation key.
Sourcepub fn container_id(&self) -> &str
pub fn container_id(&self) -> &str
Returns the container identifier.
Returns the orchestrator tags.
Sourcepub fn git_commit_sha(&self) -> &str
pub fn git_commit_sha(&self) -> &str
Returns the git commit SHA.
Returns the process tags hash.
Returns the process tags.
Trait Implementations§
Source§impl Clone for ClientStatsPayload
impl Clone for ClientStatsPayload
Source§fn clone(&self) -> ClientStatsPayload
fn clone(&self) -> ClientStatsPayload
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ClientStatsPayload
impl Debug for ClientStatsPayload
Source§impl Default for ClientStatsPayload
impl Default for ClientStatsPayload
Source§fn default() -> ClientStatsPayload
fn default() -> ClientStatsPayload
Source§impl PartialEq for ClientStatsPayload
impl PartialEq for ClientStatsPayload
impl StructuralPartialEq for ClientStatsPayload
Auto Trait Implementations§
impl Freeze for ClientStatsPayload
impl RefUnwindSafe for ClientStatsPayload
impl Send for ClientStatsPayload
impl Sync for ClientStatsPayload
impl Unpin for ClientStatsPayload
impl UnwindSafe for ClientStatsPayload
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::RequestSource§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> Track for T
impl<T> Track for T
§fn track_allocations(self, token: AllocationGroupToken) -> Tracked<Self>
fn track_allocations(self, token: AllocationGroupToken) -> Tracked<Self>
Tracked wrapper. Read more§fn in_current_allocation_group(self) -> Tracked<Self>
fn in_current_allocation_group(self) -> Tracked<Self>
Tracked wrapper. Read more