+73
−2
spec/labkit/fields_spec.rb
0 → 100644
+47
−0
Loading
Add Labkit::Fields::Deprecated module that maps deprecated logging field names to their standardized replacements. This supports the Observability Field Standardisation initiative. The module provides: - `all` - returns list of all deprecated field names - `standard_field_for(deprecated)` - returns the standard field name - `deprecated?(field)` - checks if a field is deprecated Also adds `constant_name_for` helper to Labkit::Fields for reverse lookup of field constants by value. See: https://handbook.gitlab.com/handbook/engineering/architecture/design-documents/observability_field_standardisation/