sentry-options 0.0.8__tar.gz → 0.0.9__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.
@@ -576,7 +576,7 @@ dependencies = [
576
576
 
577
577
  [[package]]
578
578
  name = "example"
579
- version = "0.0.8"
579
+ version = "0.0.9"
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.8"
2088
+ version = "0.0.9"
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.8"
2098
+ version = "0.0.9"
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.8"
2113
+ version = "0.0.9"
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.8"
2122
+ version = "0.0.9"
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.8"
14
+ version = "0.0.9"
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.8" }
20
+ sentry-options-validation = { path = "sentry-options-validation", version = "0.0.9" }
21
21
  serde = { version = "1.0", features = ["derive"] }
22
22
  serde_json = "1.0.145"
23
23
  anyhow = "1.0.100"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sentry_options
3
- Version: 0.0.8
3
+ Version: 0.0.9
4
4
  Classifier: Programming Language :: Python :: 3
5
5
  Classifier: Programming Language :: Python :: 3 :: Only
6
6
  Classifier: Programming Language :: Python :: Implementation :: CPython
@@ -4,7 +4,7 @@ build-backend = "maturin"
4
4
 
5
5
  [project]
6
6
  name = "sentry_options"
7
- version = "0.0.8"
7
+ version = "0.0.9"
8
8
  description = "Python client for sentry-options using Rust validation"
9
9
  license = "Apache-2.0"
10
10
  requires-python = ">=3.11"
@@ -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> {