pub struct TelemetryHints {
pub span_name: Option<String>,
pub attributes: BTreeMap<String, String>,
pub sampling: Option<String>,
}Expand description
Optional telemetry hints for a node.
Fields§
§span_name: Option<String>Optional span name.
attributes: BTreeMap<String, String>Attributes to attach to spans/logs.
sampling: Option<String>Sampling hint (high, normal, low).
Trait Implementations§
Source§impl Clone for TelemetryHints
impl Clone for TelemetryHints
Source§fn clone(&self) -> TelemetryHints
fn clone(&self) -> TelemetryHints
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TelemetryHints
impl Debug for TelemetryHints
Source§impl Default for TelemetryHints
impl Default for TelemetryHints
Source§fn default() -> TelemetryHints
fn default() -> TelemetryHints
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TelemetryHints
impl<'de> Deserialize<'de> for TelemetryHints
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 PartialEq for TelemetryHints
impl PartialEq for TelemetryHints
Source§impl Serialize for TelemetryHints
impl Serialize for TelemetryHints
impl Eq for TelemetryHints
impl StructuralPartialEq for TelemetryHints
Auto Trait Implementations§
impl Freeze for TelemetryHints
impl RefUnwindSafe for TelemetryHints
impl Send for TelemetryHints
impl Sync for TelemetryHints
impl Unpin for TelemetryHints
impl UnwindSafe for TelemetryHints
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.