pub struct MetricLabels {
pub scheme: Scheme,
pub namespace: Arc<str>,
pub root: Arc<str>,
pub operation: &'static str,
pub error: Option<ErrorKind>,
pub status_code: Option<StatusCode>,
}
Expand description
MetricLabels are the labels for the metrics.
Fields§
§scheme: Scheme
The storage scheme identifier (e.g., “s3”, “gcs”, “azblob”, “fs”). Used to differentiate between different storage backends.
namespace: Arc<str>
The storage namespace (e.g., bucket name, container name). Identifies the specific storage container being accessed.
root: Arc<str>
The root path within the namespace that was configured. Used to track operations within a specific path prefix.
operation: &'static str
The operation being performed (e.g., “read”, “write”, “list”). Identifies which API operation generated this metric.
error: Option<ErrorKind>
The specific error kind that occurred during an operation.
Only populated for OperationErrorsTotal
metric.
Used to track frequency of specific error types.
status_code: Option<StatusCode>
The HTTP status code received in an error response.
Only populated for HttpStatusErrorsTotal
metric.
Used to track frequency of specific HTTP error status codes.
Trait Implementations§
Source§impl Clone for MetricLabels
impl Clone for MetricLabels
Source§fn clone(&self) -> MetricLabels
fn clone(&self) -> MetricLabels
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for MetricLabels
impl Debug for MetricLabels
Source§impl Default for MetricLabels
impl Default for MetricLabels
Source§fn default() -> MetricLabels
fn default() -> MetricLabels
Source§impl Hash for MetricLabels
impl Hash for MetricLabels
Source§impl PartialEq for MetricLabels
impl PartialEq for MetricLabels
impl Eq for MetricLabels
impl StructuralPartialEq for MetricLabels
Auto Trait Implementations§
impl Freeze for MetricLabels
impl RefUnwindSafe for MetricLabels
impl Send for MetricLabels
impl Sync for MetricLabels
impl Unpin for MetricLabels
impl UnwindSafe for MetricLabels
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
key
and return true
if they are equal.