pub struct CapturedTelemetryAttributes { /* private fields */ }Expand description
A set of string-keyed values selected from an operation’s input, carried through the ConfigBag
for telemetry.
Cheap to clone regardless of value length, so propagating it as the ConfigBag moves through
config-bag layers stays inexpensive.
Implementations§
Source§impl CapturedTelemetryAttributes
impl CapturedTelemetryAttributes
Sourcepub fn insert(&mut self, name: impl AsRef<str>, value: impl AsRef<str>)
pub fn insert(&mut self, name: impl AsRef<str>, value: impl AsRef<str>)
Inserts a captured value under name, replacing any existing value for that name.
Takes impl AsRef<str> so the public API doesn’t commit to the internal storage type;
values are cloned into the backing representation here.
Trait Implementations§
Source§impl Clone for CapturedTelemetryAttributes
impl Clone for CapturedTelemetryAttributes
Source§fn clone(&self) -> CapturedTelemetryAttributes
fn clone(&self) -> CapturedTelemetryAttributes
Returns a duplicate of the value. Read more
1.0.0 · 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 CapturedTelemetryAttributes
impl Debug for CapturedTelemetryAttributes
Source§impl Default for CapturedTelemetryAttributes
impl Default for CapturedTelemetryAttributes
Source§fn default() -> CapturedTelemetryAttributes
fn default() -> CapturedTelemetryAttributes
Returns the “default value” for a type. Read more
Source§impl Storable for CapturedTelemetryAttributes
impl Storable for CapturedTelemetryAttributes
Source§type Storer = StoreReplace<CapturedTelemetryAttributes>
type Storer = StoreReplace<CapturedTelemetryAttributes>
Specify how an item is stored in the config bag, e.g.
StoreReplace and StoreAppendimpl Eq for CapturedTelemetryAttributes
impl StructuralPartialEq for CapturedTelemetryAttributes
Auto Trait Implementations§
impl Freeze for CapturedTelemetryAttributes
impl RefUnwindSafe for CapturedTelemetryAttributes
impl Send for CapturedTelemetryAttributes
impl Sync for CapturedTelemetryAttributes
impl Unpin for CapturedTelemetryAttributes
impl UnsafeUnpin for CapturedTelemetryAttributes
impl UnwindSafe for CapturedTelemetryAttributes
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more