pub struct ServiceInfo { /* private fields */ }Expand description
Canonical service identity plus its complete process build metadata.
The service name follows the telemetry convention <product>-<process>.
Keeping the canonical ServiceIdentity inside this value ensures runtime,
logging, metrics, and traces cannot disagree about the process identity.
Implementations§
Source§impl ServiceInfo
impl ServiceInfo
Sourcepub fn new(
product: impl Into<String>,
process: ProcessKind,
build: BuildInfo,
environment: DeploymentEnvironment,
) -> Self
pub fn new( product: impl Into<String>, process: ProcessKind, build: BuildInfo, environment: DeploymentEnvironment, ) -> Self
Creates service information using Baukit’s canonical service-name format.
Sourcepub const fn process(&self) -> ProcessKind
pub const fn process(&self) -> ProcessKind
Returns this process’s kind.
Sourcepub const fn telemetry_identity(&self) -> &ServiceIdentity
pub const fn telemetry_identity(&self) -> &ServiceIdentity
Returns the identity accepted directly by baukit-telemetry.
Trait Implementations§
Source§impl Clone for ServiceInfo
impl Clone for ServiceInfo
Source§impl Debug for ServiceInfo
impl Debug for ServiceInfo
impl Eq for ServiceInfo
Source§impl PartialEq for ServiceInfo
impl PartialEq for ServiceInfo
impl StructuralPartialEq for ServiceInfo
Auto Trait Implementations§
impl Freeze for ServiceInfo
impl RefUnwindSafe for ServiceInfo
impl Send for ServiceInfo
impl Sync for ServiceInfo
impl Unpin for ServiceInfo
impl UnsafeUnpin for ServiceInfo
impl UnwindSafe for ServiceInfo
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