Skip to content

Commit d5f4946

Browse files
authored
Update ValueError message that is misleading (open-telemetry#3769)
1 parent 947472b commit d5f4946

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111
([#3751](https://github.com/open-telemetry/opentelemetry-python/pull/3751))
1212
- bump mypy to 0.982
1313
([#3776](https://github.com/open-telemetry/opentelemetry-python/pull/3776))
14+
- Fix ValueError message for PeriodicExportingMetricsReader
15+
([#3769](https://github.com/open-telemetry/opentelemetry-python/pull/3769))
1416

1517
## Version 1.23.0/0.44b0 (2024-02-23)
1618

opentelemetry-sdk/src/opentelemetry/sdk/metrics/_internal/export/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ def __init__(
496496
elif self._export_interval_millis <= 0:
497497
raise ValueError(
498498
f"interval value {self._export_interval_millis} is invalid \
499-
and needs to be larger than zero and lower than infinity."
499+
and needs to be larger than zero."
500500
)
501501

502502
def _at_fork_reinit(self):

0 commit comments

Comments
 (0)