pub struct TelemetryAttributes(/* private fields */);Expand description
A set of key-value attributes that enrich fetch telemetry.
Attach these to a request (via its extensions) to merge custom dimensions into the metrics recorded for that request.
Implementations§
Trait Implementations§
Source§impl Clone for TelemetryAttributes
impl Clone for TelemetryAttributes
Source§fn clone(&self) -> TelemetryAttributes
fn clone(&self) -> TelemetryAttributes
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 TelemetryAttributes
impl Debug for TelemetryAttributes
Source§impl Default for TelemetryAttributes
impl Default for TelemetryAttributes
Source§fn default() -> TelemetryAttributes
fn default() -> TelemetryAttributes
Returns the “default value” for a type. Read more
Source§impl Extend<KeyValue> for TelemetryAttributes
impl Extend<KeyValue> for TelemetryAttributes
Source§fn extend<T: IntoIterator<Item = KeyValue>>(&mut self, iter: T)
fn extend<T: IntoIterator<Item = KeyValue>>(&mut self, iter: T)
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one)Reserves capacity in a collection for the given number of additional elements. Read more
Source§impl FromIterator<KeyValue> for TelemetryAttributes
impl FromIterator<KeyValue> for TelemetryAttributes
Auto Trait Implementations§
impl Freeze for TelemetryAttributes
impl RefUnwindSafe for TelemetryAttributes
impl Send for TelemetryAttributes
impl Sync for TelemetryAttributes
impl Unpin for TelemetryAttributes
impl UnsafeUnpin for TelemetryAttributes
impl UnwindSafe for TelemetryAttributes
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