#[non_exhaustive]pub struct OtelAttributeView {
pub event_name: &'static str,
pub constant_attrs: &'static [(&'static str, &'static str)],
}Expand description
View of the OTel attribute set baked into a schema at codegen time. Phase-1 ships an empty struct; codegen populates it in Phase 2. Spec 14 § 2 / spec 20 § 2.3.
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.event_name: &'static strevent.name for OTLP (the schema’s full name unless overridden).
constant_attrs: &'static [(&'static str, &'static str)]Schema-constant attributes attached to every emit.
Trait Implementations§
Source§impl Debug for OtelAttributeView
impl Debug for OtelAttributeView
Source§impl Default for OtelAttributeView
impl Default for OtelAttributeView
Source§fn default() -> OtelAttributeView
fn default() -> OtelAttributeView
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for OtelAttributeView
impl RefUnwindSafe for OtelAttributeView
impl Send for OtelAttributeView
impl Sync for OtelAttributeView
impl Unpin for OtelAttributeView
impl UnsafeUnpin for OtelAttributeView
impl UnwindSafe for OtelAttributeView
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