Skip to content

Commit c6cd533

Browse files
authored
Merge branch 'main' into dependabot/github_actions/github-actions-f65240ce72
2 parents bc4a2d4 + ba5496a commit c6cd533

File tree

6 files changed

+28
-5
lines changed

6 files changed

+28
-5
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1616
to crash at shutdown with a max recursion error ([#4586](https://github.com/open-telemetry/opentelemetry-python/pull/4586)).
1717
- Configurable max retry timeout for grpc exporter
1818
([#4333](https://github.com/open-telemetry/opentelemetry-python/pull/4333))
19+
- opentelemetry-api: allow importlib-metadata 8.7.0
20+
([#4593](https://github.com/open-telemetry/opentelemetry-python/pull/4593))
21+
- opentelemetry-test-utils: assert explicit bucket boundaries in histogram metrics
22+
([#4595](https://github.com/open-telemetry/opentelemetry-python/pull/4595))
1923

2024
## Version 1.33.0/0.54b0 (2025-05-09)
2125

RELEASING.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,16 @@
2222
* Press the "Run workflow" button, then select the release branch from the dropdown list,
2323
e.g. `release/v1.9.x`, then enter the pull request number that you want to backport,
2424
then click the "Run workflow" button below that.
25+
* Add the label `backport` to the generated pull request.
26+
* In case label automation doesn't work, just close and reopen the PR so that the workflow will take into account the label automation we have in place.
2527
* Review and merge the backport pull request that it generates.
2628
* Merge a pull request to the release branch updating the `CHANGELOG.md`.
2729
* The heading for the unreleased entries should be `## Unreleased`.
2830
* Run the [Prepare patch release workflow](https://github.com/open-telemetry/opentelemetry-python/actions/workflows/prepare-patch-release.yml).
2931
* Press the "Run workflow" button, then select the release branch from the dropdown list,
3032
e.g. `release/v1.9.x`, and click the "Run workflow" button below that.
3133
* Review and merge the pull request that it creates for updating the version.
34+
* Note: If you are doing a patch release in `-core` repo, you should also do an equivalent patch release in `-contrib` repo (even if there's no fix to release), otherwise tests in CI will fail.
3235

3336
## Making the release
3437

opentelemetry-api/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ dependencies = [
3030
"Deprecated >= 1.2.6",
3131
# FIXME This should be able to be removed after 3.12 is released if there is a reliable API
3232
# in importlib.metadata.
33-
"importlib-metadata >= 6.0, < 8.7.0",
33+
"importlib-metadata >= 6.0, < 8.8.0",
3434
]
3535
dynamic = [
3636
"version",

opentelemetry-api/test-requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
asgiref==3.7.2
22
Deprecated==1.2.14
33
importlib-metadata==8.5.0 ; python_version < "3.9"
4-
importlib-metadata==8.6.1 ; python_version >= "3.9"
4+
importlib-metadata==8.7.0 ; python_version >= "3.9"
55
iniconfig==2.0.0
66
packaging==24.0
77
pluggy==1.5.0

tests/opentelemetry-test-utils/src/opentelemetry/test/test_base.py

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020
from opentelemetry import metrics as metrics_api
2121
from opentelemetry import trace as trace_api
2222
from opentelemetry.sdk.metrics import MeterProvider
23+
from opentelemetry.sdk.metrics._internal.aggregation import (
24+
_DEFAULT_EXPLICIT_BUCKET_HISTOGRAM_AGGREGATION_BOUNDARIES,
25+
)
2326
from opentelemetry.sdk.metrics._internal.point import Metric
2427
from opentelemetry.sdk.metrics.export import (
2528
DataPointT,
@@ -204,6 +207,12 @@ def is_data_points_equal(
204207
):
205208
return False
206209

210+
if (
211+
expected_data_point.explicit_bounds
212+
!= data_point.explicit_bounds
213+
):
214+
return False
215+
207216
return (
208217
values_diff <= est_value_delta
209218
and expected_data_point.attributes == dict(data_point.attributes)
@@ -239,7 +248,12 @@ def create_number_data_point(value, attributes):
239248

240249
@staticmethod
241250
def create_histogram_data_point(
242-
sum_data_point, count, max_data_point, min_data_point, attributes
251+
sum_data_point,
252+
count,
253+
max_data_point,
254+
min_data_point,
255+
attributes,
256+
explicit_bounds=None,
243257
):
244258
return HistogramDataPoint(
245259
count=count,
@@ -250,7 +264,9 @@ def create_histogram_data_point(
250264
start_time_unix_nano=0,
251265
time_unix_nano=0,
252266
bucket_counts=[],
253-
explicit_bounds=[],
267+
explicit_bounds=explicit_bounds
268+
if explicit_bounds is not None
269+
else _DEFAULT_EXPLICIT_BUCKET_HISTOGRAM_AGGREGATION_BOUNDARIES,
254270
)
255271

256272

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)