[SDK] Restore configured `MaxScale` after delta histogram collection
Merged
MA
3mo ago+40+40+01234567890123456789-2-2-0123456789
Changes
Restores configured MaxScale after a delta exponential-histogram is collected.
MaxScale is the maximum scale available to an exponential histogram stream, so resetting or copying the histogram should not discard that configuration, per the metrics SDK spec.
This restores the config after collection and when copying a histogram, while preserving the reset behavior introduced in #6557.
Merge requirement checklist
- CONTRIBUTING guidelines followed (license requirements, nullable enabled, static analysis, etc.)
- Unit tests added/updated
- Appropriate
CHANGELOG.mdfiles updated for non-trivial changes - Changes in public API reviewed (if applicable)