#[non_exhaustive]pub struct OtlpResourceInfo {
pub service: String,
pub env: String,
pub app_version: String,
pub language: String,
pub tracer_version: String,
pub runtime_id: String,
}Expand description
Tracer-level attributes used to populate the OTLP Resource on export.
These are the fields from the tracer’s configuration that map to OTLP Resource attributes (service.name, deployment.environment.name, service.version, telemetry.sdk.*, runtime-id). Callers should build this from their own tracer metadata struct.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.service: String§env: String§app_version: String§language: String§tracer_version: String§runtime_id: StringTrait Implementations§
Source§impl Clone for OtlpResourceInfo
impl Clone for OtlpResourceInfo
Source§fn clone(&self) -> OtlpResourceInfo
fn clone(&self) -> OtlpResourceInfo
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 OtlpResourceInfo
impl Debug for OtlpResourceInfo
Source§impl Default for OtlpResourceInfo
impl Default for OtlpResourceInfo
Source§fn default() -> OtlpResourceInfo
fn default() -> OtlpResourceInfo
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for OtlpResourceInfo
impl RefUnwindSafe for OtlpResourceInfo
impl Send for OtlpResourceInfo
impl Sync for OtlpResourceInfo
impl Unpin for OtlpResourceInfo
impl UnsafeUnpin for OtlpResourceInfo
impl UnwindSafe for OtlpResourceInfo
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