aKode fase 1 (parziale): niente Statsig, analytics, upload Sentry, update check e announcement remoti

This commit is contained in:
Andrea
2026-11-09 11:15:06 +01:00
parent 7874033c81
commit 5b5b83964d
10 changed files with 45 additions and 165 deletions

View File

@@ -10512,7 +10512,7 @@ async fn metrics_exporter_defaults_to_statsig_when_missing() -> std::io::Result<
)
.await?;
assert_eq!(config.otel.metrics_exporter, OtelExporterKind::Statsig);
assert_eq!(config.otel.metrics_exporter, OtelExporterKind::None);
assert!(config.otel.log_sse_deltas);
assert!(!config.otel.agent_response_logging_enabled());
assert!(!config.otel.guardian_assessment_logging_enabled());

View File

@@ -19,7 +19,7 @@ pub(crate) fn resolve_config(
// OTLP HTTP endpoints are signal-specific in our config, so enabling log
// export must not implicitly send spans to a /v1/logs endpoint.
let trace_exporter = config.trace_exporter.unwrap_or(OtelExporterKind::None);
let metrics_exporter = config.metrics_exporter.unwrap_or(OtelExporterKind::Statsig);
let metrics_exporter = config.metrics_exporter.unwrap_or(OtelExporterKind::None);
// Provider initialization installs process-global OTEL state. Sanitize
// user-editable trace metadata here so malformed config is reported as a
// startup warning instead of making startup fail.