{"record":{"id":"01d797566812b906","repo":"openai/codex","slug":"invalid-otlp-metrics-configuration-message","errorCode":null,"errorMessage":"invalid OTLP metrics configuration: {message}","messagePattern":"invalid OTLP metrics configuration: (.+?)","errorType":"validation","errorClass":"MetricsError","httpStatus":null,"severity":"error","filePath":"codex-rs/otel/src/metrics/error.rs","lineNumber":29,"sourceCode":"    InvalidMetricName { name: String },\n    #[error(\"{label} cannot be empty\")]\n    EmptyTagComponent { label: String },\n    #[error(\"{label} contains invalid characters: {value}\")]\n    InvalidTagComponent { label: String, value: String },\n\n    #[error(\"metrics exporter is disabled\")]\n    ExporterDisabled,\n\n    #[error(\"counter increment must be non-negative for {name}: {inc}\")]\n    NegativeCounterIncrement { name: String, inc: i64 },\n\n    #[error(\"failed to build OTLP metrics exporter\")]\n    ExporterBuild {\n        #[source]\n        source: opentelemetry_otlp::ExporterBuildError,\n    },\n\n    #[error(\"invalid OTLP metrics configuration: {message}\")]\n    InvalidConfig { message: String },\n\n    #[error(\"failed to flush or shutdown metrics provider\")]\n    ProviderShutdown {\n        #[source]\n        source: opentelemetry_sdk::error::OTelSdkError,\n    },\n\n    #[error(\"runtime metrics snapshot reader is not enabled\")]\n    RuntimeSnapshotUnavailable,\n\n    #[error(\"failed to collect runtime metrics snapshot from metrics reader\")]\n    RuntimeSnapshotCollect {\n        #[source]\n        source: opentelemetry_sdk::error::OTelSdkError,\n    },\n}\n","sourceCodeStart":11,"sourceCodeEnd":47,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/otel/src/metrics/error.rs#L11-L47","documentation":"Error \"invalid OTLP metrics configuration: {message}\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/otel/src/metrics/error.rs:29 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"339751715c64496cb86246bfb3935f40e309dd3d","analyzedAt":"2026-08-25T05:35:09.876Z","schemaVersion":2},"datasetVersion":"2026-08-25T06:17:31.827Z"}