{"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":"thiserror variant of MetricsError: the OTLP metrics configuration supplied was invalid — the message interpolates the specific problem (e.g. malformed endpoint, bad timeout, invalid header) into \"invalid OTLP metrics configuration: {message}\".","triggerScenarios":"Thrown at codex-rs/otel/src/metrics/error.rs:29 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Read the interpolated message for the exact offending field","Correct the metrics exporter settings in the telemetry configuration","Validate values (URLs, durations, header names) before loading config"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"339751715c64496cb86246bfb3935f40e309dd3d","analyzedAt":"2026-08-25T05:35:09.876Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}