@@ -94,14 +94,23 @@ pub struct Options {
94
94
) ]
95
95
pub profile_metrics_sample_rate : f32 ,
96
96
97
- /// Kill switch for shutting down profile metrics
97
+ /// Kill switch for shutting down unsampled_profile metrics
98
98
#[ serde(
99
99
rename = "profiling.profile_metrics.unsampled_profiles.enabled" ,
100
100
deserialize_with = "default_on_error" ,
101
101
skip_serializing_if = "is_default"
102
102
) ]
103
103
pub unsampled_profiles_enabled : bool ,
104
104
105
+ /// Kill switch for shutting down profile function metrics
106
+ /// ingestion in the generic-metrics platform
107
+ #[ serde(
108
+ rename = "profiling.generic_metrics.functions_ingestion.enabled" ,
109
+ deserialize_with = "default_on_error" ,
110
+ skip_serializing_if = "is_default"
111
+ ) ]
112
+ pub profiles_function_generic_metrics_enabled : bool ,
113
+
105
114
/// Kill switch for controlling the cardinality limiter.
106
115
#[ serde(
107
116
rename = "relay.cardinality-limiter.mode" ,
@@ -169,6 +178,7 @@ pub struct MetricBucketEncodings {
169
178
sessions : MetricEncoding ,
170
179
transactions : MetricEncoding ,
171
180
spans : MetricEncoding ,
181
+ profiles : MetricEncoding ,
172
182
custom : MetricEncoding ,
173
183
unsupported : MetricEncoding ,
174
184
}
@@ -180,6 +190,7 @@ impl MetricBucketEncodings {
180
190
MetricNamespace :: Sessions => self . sessions ,
181
191
MetricNamespace :: Transactions => self . transactions ,
182
192
MetricNamespace :: Spans => self . spans ,
193
+ MetricNamespace :: Profiles => self . profiles ,
183
194
MetricNamespace :: Custom => self . custom ,
184
195
MetricNamespace :: Unsupported => self . unsupported ,
185
196
}
0 commit comments