Report usage of RocksDB feature flag in telemetry (#6666)

* Report usage of RocksDB feature flag in telemetry

* Update OpenAPI spec
This commit is contained in:
Tim Visée
2025-06-11 11:35:36 +02:00
committed by generall
parent d6abef04ed
commit fd181648be
2 changed files with 6 additions and 0 deletions

View File

@@ -11268,6 +11268,7 @@
"debug",
"gpu",
"recovery_mode",
"rocksdb",
"service_debug_feature"
],
"properties": {
@@ -11282,6 +11283,9 @@
},
"gpu": {
"type": "boolean"
},
"rocksdb": {
"type": "boolean"
}
}
},

View File

@@ -26,6 +26,7 @@ pub struct AppFeaturesTelemetry {
pub service_debug_feature: bool,
pub recovery_mode: bool,
pub gpu: bool,
pub rocksdb: bool,
}
#[derive(Serialize, Clone, Debug, JsonSchema, Anonymize)]
@@ -78,6 +79,7 @@ impl AppBuildTelemetry {
service_debug_feature: cfg!(feature = "service_debug"),
recovery_mode: settings.storage.recovery_mode.is_some(),
gpu: cfg!(feature = "gpu"),
rocksdb: cfg!(feature = "rocksdb"),
}),
system: (detail.level >= DetailsLevel::Level1).then(get_system_data),
jwt_rbac: settings.service.jwt_rbac,