Skip to content

Upgrading github.com/prometheus/common 0.61 to 0.62

Breakingv0.61.0 → v0.62.0Breaking4New1Changed2Other3

BreakingUpgrade verdict

4 breaking changes.

  • By default, the library now uses the more permissive UTF-8 validation instead of the legacy scheme.
  • Code that imports the old promlog logging package will no longer compile and must switch to another logging package.
  • The old sigv4 module is gone, so any code depending on it must be updated.
  • The library now accepts a wider range of metric and label names by default, so names that were previously rejected may now be allowed.
Top 3 of 4 that need code or config changes
Breaking4
Changes the default validation scheme to UTF8Validation.
UTF8Validation
Removes the deprecated promlog package.
promlog
Removes the deprecated sigv4 module.
sigv4
Changes the internal global validation scheme from LegacyValidation to UTF8Validation, relaxing validation.
UTF8ValidationLegacyValidation