mirror of
https://github.com/openai/codex.git
synced 2026-04-24 14:45:27 +00:00
chore: drop metrics exporter config (#8892)
Dropped for now as enterprises should not be able to use it
This commit is contained in:
@@ -1439,13 +1439,12 @@ impl Config {
|
||||
.unwrap_or(DEFAULT_OTEL_ENVIRONMENT.to_string());
|
||||
let exporter = t.exporter.unwrap_or(OtelExporterKind::None);
|
||||
let trace_exporter = t.trace_exporter.unwrap_or_else(|| exporter.clone());
|
||||
let metrics_exporter = t.metrics_exporter.unwrap_or(OtelExporterKind::Statsig);
|
||||
OtelConfig {
|
||||
log_user_prompt,
|
||||
environment,
|
||||
exporter,
|
||||
trace_exporter,
|
||||
metrics_exporter,
|
||||
metrics_exporter: OtelExporterKind::Statsig,
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
@@ -338,11 +338,6 @@ pub struct OtelConfigToml {
|
||||
|
||||
/// Optional trace exporter
|
||||
pub trace_exporter: Option<OtelExporterKind>,
|
||||
|
||||
/// Optional metrics exporter
|
||||
///
|
||||
/// Defaults to `statsig` outside of tests.
|
||||
pub metrics_exporter: Option<OtelExporterKind>,
|
||||
}
|
||||
|
||||
/// Effective OTEL settings after defaults are applied.
|
||||
|
||||
Reference in New Issue
Block a user