We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c9a0e5 commit 22d2d73Copy full SHA for 22d2d73
crates/errors/src/lib.rs
@@ -2,7 +2,10 @@
2
#![feature(type_alias_impl_trait)]
3
#![feature(let_chains)]
4
#![feature(impl_trait_in_assoc_type)]
5
-use std::borrow::Cow;
+use std::{
6
+ borrow::Cow,
7
+ sync::LazyLock,
8
+};
9
10
use ::metrics::{
11
metric_tag_const,
@@ -18,6 +21,10 @@ use tungstenite::protocol::{
18
21
19
22
mod metrics;
20
23
24
+/// These module prefixes are default-hidden from stacktraces
25
+/// See https://docs.sentry.io/platforms/rust/configuration/options/#in-app-exclude
26
+pub static SENTRY_IN_APP_EXCLUDE: LazyLock<Vec<&'static str>> = LazyLock::new(|| vec!["tokio::"]);
27
+
28
/// ErrorMetadata object can be attached to an anyhow error chain via
29
/// `.context(e /*ErrorMetadata*/)`. It is a generic object to be used
30
/// across the codebase to tag errors with information that is used to classify.
0 commit comments