pub struct TelemetryResourceConfig {
pub service_name: Option<String>,
pub service_version: Option<String>,
pub service_commit: Option<String>,
pub product: Option<String>,
}Expand description
Resource identity values consumed by telemetry initialization.
Deployment environment is carried by BaukitConfig::environment. Fields
remain optional because version and commit are commonly injected from build
metadata rather than a configuration file.
Fields§
§service_name: Option<String>OpenTelemetry service.name, conventionally <product>-<process>.
service_version: Option<String>OpenTelemetry service.version, normally the Cargo package version.
service_commit: Option<String>Baukit service.commit, normally a short build-time Git SHA.
product: Option<String>Stable product identity shared by all of the product’s processes.
Trait Implementations§
Source§impl Clone for TelemetryResourceConfig
impl Clone for TelemetryResourceConfig
Source§impl Debug for TelemetryResourceConfig
impl Debug for TelemetryResourceConfig
Source§impl Default for TelemetryResourceConfig
impl Default for TelemetryResourceConfig
Source§impl<'de> Deserialize<'de> for TelemetryResourceConfigwhere
TelemetryResourceConfig: Default,
impl<'de> Deserialize<'de> for TelemetryResourceConfigwhere
TelemetryResourceConfig: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Validate for TelemetryResourceConfig
impl Validate for TelemetryResourceConfig
Auto Trait Implementations§
impl Freeze for TelemetryResourceConfig
impl RefUnwindSafe for TelemetryResourceConfig
impl Send for TelemetryResourceConfig
impl Sync for TelemetryResourceConfig
impl Unpin for TelemetryResourceConfig
impl UnsafeUnpin for TelemetryResourceConfig
impl UnwindSafe for TelemetryResourceConfig
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