|
1 | 1 | //! Dynamic configuration for metrics extraction from sessions and transactions.
|
2 | 2 |
|
3 |
| -use std::collections::{BTreeMap, BTreeSet}; |
| 3 | +use std::collections::BTreeSet; |
4 | 4 |
|
5 | 5 | use relay_sampling::RuleCondition;
|
6 | 6 | use serde::{Deserialize, Serialize};
|
@@ -64,39 +64,6 @@ impl SessionMetricsConfig {
|
64 | 64 | }
|
65 | 65 | }
|
66 | 66 |
|
67 |
| -/// The metric to which the user satisfaction threshold is applied. |
68 |
| -#[derive(Debug, Clone, Serialize, Deserialize)] |
69 |
| -#[serde(rename_all = "lowercase")] |
70 |
| -pub enum SatisfactionMetric { |
71 |
| - /// Apply to transaction duration. |
72 |
| - Duration, |
73 |
| - /// Apply to LCP. |
74 |
| - Lcp, |
75 |
| - /// Catch-all variant for forward compatibility. |
76 |
| - #[serde(other)] |
77 |
| - Unknown, |
78 |
| -} |
79 |
| - |
80 |
| -/// Configuration for a single threshold. |
81 |
| -#[derive(Debug, Clone, Serialize, Deserialize)] |
82 |
| -pub struct SatisfactionThreshold { |
83 |
| - /// What metric to apply the threshold to. |
84 |
| - pub metric: SatisfactionMetric, |
85 |
| - /// Value of the threshold. |
86 |
| - pub threshold: f64, |
87 |
| -} |
88 |
| - |
89 |
| -/// Configuration for applying the user satisfaction threshold. |
90 |
| -#[derive(Debug, Clone, Serialize, Deserialize)] |
91 |
| -#[serde(rename_all = "camelCase")] |
92 |
| -pub struct SatisfactionConfig { |
93 |
| - /// The project-wide threshold to apply. |
94 |
| - pub project_threshold: SatisfactionThreshold, |
95 |
| - /// Transaction-specific overrides of the project-wide threshold. |
96 |
| - #[serde(default, skip_serializing_if = "BTreeMap::is_empty")] |
97 |
| - pub transaction_thresholds: BTreeMap<String, SatisfactionThreshold>, |
98 |
| -} |
99 |
| - |
100 | 67 | /// Configuration for extracting custom measurements from transaction payloads.
|
101 | 68 | #[derive(Default, Debug, Clone, Serialize, Deserialize)]
|
102 | 69 | #[serde(default, rename_all = "camelCase")]
|
@@ -139,8 +106,6 @@ pub struct TransactionMetricsConfig {
|
139 | 106 | pub extract_metrics: BTreeSet<String>,
|
140 | 107 | /// Custom event tags that are transferred from the transaction to metrics.
|
141 | 108 | pub extract_custom_tags: BTreeSet<String>,
|
142 |
| - /// Config for determining user satisfaction (satisfied / tolerated / frustrated) |
143 |
| - pub satisfaction_thresholds: Option<SatisfactionConfig>, |
144 | 109 | /// Deprecated in favor of top-level config field. Still here to be forwarded to external relays.
|
145 | 110 | pub custom_measurements: CustomMeasurementConfig,
|
146 | 111 | /// Defines whether URL transactions should be considered low cardinality.
|
|
0 commit comments