Skip to content

Commit

Permalink
docs: improve MetricsConfig description
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthieu Bessat committed Aug 29, 2024
1 parent 9fbe5b9 commit 9abcc58
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -339,11 +339,11 @@ use prometheus::{
use regex::RegexSet;
use strfmt::strfmt;

/// MetricsConfig define middleware and config struct to change the behaviour of the metrics
/// struct to define some particularities
/// Define optional behaviour of metrics retention for a route or a subset of routes
/// This MetricsConfig is defined via extensions data
#[derive(Debug, Clone)]
pub struct MetricsConfig {
/// list of params where the cardinality matters
/// list of params where the cardinality is useful and want to be preserved
pub cardinality_keep_params: Vec<String>,
}

Expand Down

0 comments on commit 9abcc58

Please sign in to comment.