[Exporter.Prometheus] Update translation strategy

Merged
MA
3mo ago
+391-110

Changes

Update interaction between content negotiation and translation strategy in response to changes in open-telemetry/opentelemetry-specification#5134.

Merge requirement checklist

  • CONTRIBUTING guidelines followed (license requirements, nullable enabled, static analysis, etc.)
  • Unit tests added/updated
  • Appropriate CHANGELOG.md files updated for non-trivial changes
  • Changes in public API reviewed (if applicable)