diff --git a/src/config/mod.rs b/src/config/mod.rs
index 16a371191a0f1482aa7c8206604338150d4f8bd4..23c313060f8dec3c21029827f667f6705d5ee69d 100644
--- a/src/config/mod.rs
+++ b/src/config/mod.rs
@@ -172,8 +172,10 @@ pub(crate) struct Config {
 	#[serde(default)]
 	pub(crate) well_known: WellKnownConfig,
 	#[serde(default)]
+	#[cfg(feature = "perf_measurements")]
 	pub(crate) allow_jaeger: bool,
 	#[serde(default)]
+	#[cfg(feature = "perf_measurements")]
 	pub(crate) tracing_flame: bool,
 	#[serde(default)]
 	pub(crate) proxy: ProxyConfig,