-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Toby Lawrence <[email protected]>
- Loading branch information
Showing
20 changed files
with
132 additions
and
132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
too-many-lines-threshold = 150 | ||
ignore-interior-mutability = ["metrics::key::Key"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,13 +7,13 @@ use tracing::dispatcher::{set_default, Dispatch}; | |
use tracing::{span, Level}; | ||
use tracing_subscriber::{layer::SubscriberExt, Registry}; | ||
|
||
static LOGIN_ATTEMPTS: &'static str = "login_attempts"; | ||
static LOGIN_ATTEMPTS_NONE: &'static str = "login_attempts_no_labels"; | ||
static LOGIN_ATTEMPTS_STATIC: &'static str = "login_attempts_static_labels"; | ||
static LOGIN_ATTEMPTS_DYNAMIC: &'static str = "login_attempts_dynamic_labels"; | ||
static LOGIN_ATTEMPTS_BOTH: &'static str = "login_attempts_static_and_dynamic_labels"; | ||
static MY_COUNTER: &'static str = "my_counter"; | ||
static USER_EMAIL: &'static [Label] = &[ | ||
static LOGIN_ATTEMPTS: &str = "login_attempts"; | ||
static LOGIN_ATTEMPTS_NONE: &str = "login_attempts_no_labels"; | ||
static LOGIN_ATTEMPTS_STATIC: &str = "login_attempts_static_labels"; | ||
static LOGIN_ATTEMPTS_DYNAMIC: &str = "login_attempts_dynamic_labels"; | ||
static LOGIN_ATTEMPTS_BOTH: &str = "login_attempts_static_and_dynamic_labels"; | ||
static MY_COUNTER: &str = "my_counter"; | ||
static USER_EMAIL: &[Label] = &[ | ||
Label::from_static_parts("user", "ferris"), | ||
Label::from_static_parts("user.email", "[email protected]"), | ||
]; | ||
|
@@ -560,7 +560,7 @@ fn test_label_filtering() { | |
|
||
#[test] | ||
fn test_label_allowlist() { | ||
let snapshot = with_tracing_layer(TracingContextLayer::only_allow(&["env", "service"]), || { | ||
let snapshot = with_tracing_layer(TracingContextLayer::only_allow(["env", "service"]), || { | ||
let user = "ferris"; | ||
let email = "[email protected]"; | ||
let span = span!( | ||
|
Oops, something went wrong.