Stable observability code for this degradation reason (RFC §13 Phase 13 task 5). Codes are fixed snake_case strings; details live in logs, never in structured telemetry.
(&self)
| 58 | /// Phase 13 task 5). Codes are fixed snake_case strings; details live |
| 59 | /// in logs, never in structured telemetry. |
| 60 | pub fn code(&self) -> &'static str { |
| 61 | match self { |
| 62 | Self::MissingIndex => "missing_index", |
| 63 | Self::MalformedIndex(_) => "malformed_index", |
| 64 | Self::ConversionPolicyChanged => "conversion_policy_changed", |
| 65 | Self::CanonicalAttributesChanged => "canonical_attributes_changed", |
| 66 | Self::SparsePolicyChanged => "sparse_policy_changed", |
| 67 | Self::ConfigurationChanged => "configuration_changed", |
| 68 | Self::FilterChanged => "filter_changed", |
| 69 | Self::ConfiguredOff => "configured_off", |
| 70 | Self::DisabledInCi => "disabled_in_ci", |
| 71 | Self::DisabledInContainer => "disabled_in_container", |
| 72 | Self::Unavailable(_) => "unavailable", |
| 73 | Self::UnsupportedVersion { .. } => "unsupported_version", |
| 74 | Self::UnknownToken => "unknown_token", |
| 75 | Self::Overflow => "overflow", |
| 76 | Self::MalformedResponse(_) => "malformed_response", |
| 77 | Self::Timeout { .. } => "timeout", |
| 78 | Self::SourceError(_) => "source_error", |
| 79 | } |
| 80 | } |
| 81 | } |
| 82 | |
| 83 | /// Why a path was selected for canonical re-verification. |
no outgoing calls
no test coverage detected