sentry-options 0.0.8__tar.gz → 0.0.10__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {sentry_options-0.0.8 → sentry_options-0.0.10}/Cargo.lock +5 -5
- {sentry_options-0.0.8 → sentry_options-0.0.10}/Cargo.toml +2 -2
- {sentry_options-0.0.8 → sentry_options-0.0.10}/PKG-INFO +1 -1
- {sentry_options-0.0.8 → sentry_options-0.0.10}/pyproject.toml +1 -1
- {sentry_options-0.0.8 → sentry_options-0.0.10}/sentry-options-validation/src/lib.rs +17 -2
- {sentry_options-0.0.8 → sentry_options-0.0.10}/clients/python/Cargo.toml +0 -0
- {sentry_options-0.0.8 → sentry_options-0.0.10}/clients/python/src/lib.rs +0 -0
- {sentry_options-0.0.8 → sentry_options-0.0.10}/clients/python/tests/options_test.py +0 -0
- {sentry_options-0.0.8 → sentry_options-0.0.10}/clients/python/uv.lock +0 -0
- {sentry_options-0.0.8 → sentry_options-0.0.10}/clients/rust/Cargo.toml +0 -0
- {sentry_options-0.0.8 → sentry_options-0.0.10}/clients/rust/src/lib.rs +0 -0
- {sentry_options-0.0.8 → sentry_options-0.0.10}/sentry-options-validation/Cargo.toml +0 -0
- {sentry_options-0.0.8 → sentry_options-0.0.10}/sentry-options-validation/src/namespace-schema.json +0 -0
|
@@ -576,7 +576,7 @@ dependencies = [
|
|
|
576
576
|
|
|
577
577
|
[[package]]
|
|
578
578
|
name = "example"
|
|
579
|
-
version = "0.0.
|
|
579
|
+
version = "0.0.10"
|
|
580
580
|
dependencies = [
|
|
581
581
|
"anyhow",
|
|
582
582
|
"sentry-options",
|
|
@@ -2085,7 +2085,7 @@ dependencies = [
|
|
|
2085
2085
|
|
|
2086
2086
|
[[package]]
|
|
2087
2087
|
name = "sentry-options"
|
|
2088
|
-
version = "0.0.
|
|
2088
|
+
version = "0.0.10"
|
|
2089
2089
|
dependencies = [
|
|
2090
2090
|
"sentry-options-validation",
|
|
2091
2091
|
"serde_json",
|
|
@@ -2095,7 +2095,7 @@ dependencies = [
|
|
|
2095
2095
|
|
|
2096
2096
|
[[package]]
|
|
2097
2097
|
name = "sentry-options-cli"
|
|
2098
|
-
version = "0.0.
|
|
2098
|
+
version = "0.0.10"
|
|
2099
2099
|
dependencies = [
|
|
2100
2100
|
"chrono",
|
|
2101
2101
|
"clap",
|
|
@@ -2110,7 +2110,7 @@ dependencies = [
|
|
|
2110
2110
|
|
|
2111
2111
|
[[package]]
|
|
2112
2112
|
name = "sentry-options-python"
|
|
2113
|
-
version = "0.0.
|
|
2113
|
+
version = "0.0.10"
|
|
2114
2114
|
dependencies = [
|
|
2115
2115
|
"pyo3",
|
|
2116
2116
|
"sentry-options",
|
|
@@ -2119,7 +2119,7 @@ dependencies = [
|
|
|
2119
2119
|
|
|
2120
2120
|
[[package]]
|
|
2121
2121
|
name = "sentry-options-validation"
|
|
2122
|
-
version = "0.0.
|
|
2122
|
+
version = "0.0.10"
|
|
2123
2123
|
dependencies = [
|
|
2124
2124
|
"anyhow",
|
|
2125
2125
|
"chrono",
|
|
@@ -11,13 +11,13 @@ default-members = [
|
|
|
11
11
|
]
|
|
12
12
|
|
|
13
13
|
[workspace.package]
|
|
14
|
-
version = "0.0.
|
|
14
|
+
version = "0.0.10"
|
|
15
15
|
edition = "2024"
|
|
16
16
|
repository = "https://github.com/getsentry/sentry-options"
|
|
17
17
|
license = "Apache-2.0"
|
|
18
18
|
|
|
19
19
|
[workspace.dependencies]
|
|
20
|
-
sentry-options-validation = { path = "sentry-options-validation", version = "0.0.
|
|
20
|
+
sentry-options-validation = { path = "sentry-options-validation", version = "0.0.10" }
|
|
21
21
|
serde = { version = "1.0", features = ["derive"] }
|
|
22
22
|
serde_json = "1.0.145"
|
|
23
23
|
anyhow = "1.0.100"
|
|
@@ -31,11 +31,17 @@ const POLLING_DELAY: u64 = 5;
|
|
|
31
31
|
|
|
32
32
|
/// Dedicated Sentry DSN for sentry-options observability.
|
|
33
33
|
/// This is separate from the host application's Sentry setup.
|
|
34
|
+
#[cfg(not(test))]
|
|
34
35
|
const SENTRY_OPTIONS_DSN: &str =
|
|
35
36
|
"https://d3598a07e9f23a9acee9e2718cfd17bd@o1.ingest.us.sentry.io/4510750163927040";
|
|
36
37
|
|
|
38
|
+
/// Disabled DSN for tests - empty string creates a disabled client
|
|
39
|
+
#[cfg(test)]
|
|
40
|
+
const SENTRY_OPTIONS_DSN: &str = "";
|
|
41
|
+
|
|
37
42
|
/// Lazily-initialized dedicated Sentry Hub for sentry-options.
|
|
38
43
|
/// Uses a custom Client that is completely isolated from the host application's Sentry setup.
|
|
44
|
+
/// In test mode, creates a disabled client (empty DSN) so no spans are sent.
|
|
39
45
|
static SENTRY_HUB: OnceLock<Arc<sentry::Hub>> = OnceLock::new();
|
|
40
46
|
|
|
41
47
|
fn get_sentry_hub() -> &'static Arc<sentry::Hub> {
|
|
@@ -174,10 +180,19 @@ impl NamespaceSchema {
|
|
|
174
180
|
if output.flag().valid {
|
|
175
181
|
Ok(())
|
|
176
182
|
} else {
|
|
177
|
-
let errors: Vec<String> = output
|
|
183
|
+
let errors: Vec<String> = output
|
|
184
|
+
.iter_errors()
|
|
185
|
+
.map(|e| {
|
|
186
|
+
format!(
|
|
187
|
+
"\n\t{} {}",
|
|
188
|
+
e.instance_location.as_str().trim_start_matches("/"),
|
|
189
|
+
e.error
|
|
190
|
+
)
|
|
191
|
+
})
|
|
192
|
+
.collect();
|
|
178
193
|
Err(ValidationError::ValueError {
|
|
179
194
|
namespace: self.namespace.clone(),
|
|
180
|
-
errors: errors.join("
|
|
195
|
+
errors: errors.join(""),
|
|
181
196
|
})
|
|
182
197
|
}
|
|
183
198
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sentry_options-0.0.8 → sentry_options-0.0.10}/sentry-options-validation/src/namespace-schema.json
RENAMED
|
File without changes
|