Skip to content

Commit 1917bbf

Browse files
authored
Merge branch 'main' into xray-sampler-pr0
2 parents 6834c29 + e2ba6d4 commit 1917bbf

File tree

194 files changed

+5924
-2282
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

194 files changed

+5924
-2282
lines changed

CHANGELOG.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,49 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1818

1919
### Fixed
2020

21+
- `opentelemetry-instrumentation-system-metrics`: fix loading on Google Cloud Run
22+
([#3533](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/3533))
23+
- `opentelemetry-instrumentation-fastapi`: fix wrapping of middlewares
24+
([#3012](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/3012))
25+
- `opentelemetry-instrumentation-starlette` Remove max version constraint on starlette
26+
([#3456](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/3456))
27+
- `opentelemetry-instrumentation-urllib3`: proper bucket boundaries in stable semconv http duration metrics
28+
([#3518](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/3518))
29+
- `opentelemetry-instrumentation-urllib`: proper bucket boundaries in stable semconv http duration metrics
30+
([#3519](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/3519))
31+
- `opentelemetry-instrumentation-falcon`: proper bucket boundaries in stable semconv http duration
32+
([#3525](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/3525))
33+
- `opentelemetry-instrumentation-wsgi`: add explicit http duration buckets for stable semconv
34+
([#3527](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/3527))
35+
- `opentelemetry-instrumentation-asgi`: add explicit http duration buckets for stable semconv
36+
([#3526](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/3526))
37+
- `opentelemetry-instrumentation-flask`: proper bucket boundaries in stable semconv http duration
38+
([#3523](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/3523))
39+
- `opentelemetry-instrumentation-django`: proper bucket boundaries in stable semconv http duration
40+
([#3524](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/3524))
41+
- `opentelemetry-instrumentation-grpc`: support non-list interceptors
42+
([#3520](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/3520))
43+
- `opentelemetry-instrumentation-botocore` Ensure spans end on early stream closure for Bedrock Streaming APIs
44+
([#3481](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/3481))
45+
46+
### Breaking changes
47+
48+
- `opentelemetry-instrumentation-botocore` Use `cloud.region` instead of `aws.region` span attribute as per semantic conventions.
49+
([#3474](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/3474))
50+
- `opentelemetry-instrumentation-fastapi`: Drop support for FastAPI versions earlier than `0.92`
51+
([#3012](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/3012))
52+
53+
## Version 1.33.0/0.54b0 (2025-05-09)
54+
55+
### Added
56+
57+
- `opentelemetry-instrumentation-requests` Support explicit_bucket_boundaries_advisory in duration metrics
58+
([#3464](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/3464))
59+
- `opentelemetry-instrumentation-redis` Add support for redis client-specific instrumentation.
60+
([#3143](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/3143))
61+
62+
### Fixed
63+
2164
- `opentelemetry-instrumentation` Catch `ModuleNotFoundError` when the library is not installed
2265
and log as debug instead of exception
2366
([#3423](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/3423))

RELEASING.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
(otherwise the workflow will pick up the version from `main` and just remove the `.dev` suffix).
1010
* Review the two pull requests that it creates.
1111
(one is targeted to the release branch and one is targeted to `main`).
12-
* The builds will fail for both the `main` and release pr because of validation rules. Follow the [release workflow](https://github.com/open-telemetry/opentelemetry-python/blob/main/RELEASING.md) for the core repo up until this same point. Change the SHAs of each PR to point at each other to get the `main` and release builds to pass.
12+
* The builds will fail for the release PR because of validation rules. Follow the [release workflow](https://github.com/open-telemetry/opentelemetry-python/blob/main/RELEASING.md) for the core repo up until this same point.
13+
* Close and reopen the PR so that the workflow will take into account the label automation we have in place
1314
* Merge the release PR.
1415
* Merge the PR to main (this can be done separately from [making the release](#making-the-release))
1516

@@ -40,13 +41,16 @@ The workflow will create two pull requests, one against the `main` and one again
4041
* Press the "Run workflow" button, then select the release branch from the dropdown list,
4142
e.g. `release/v1.9.x`, then enter the pull request number that you want to backport,
4243
then click the "Run workflow" button below that.
44+
* Add the label `backport` to the generated pull request.
45+
* 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.
4346
* Review and merge the backport pull request that it generates.
4447
* Merge a pull request to the release branch updating the `CHANGELOG.md`.
4548
* The heading for the unreleased entries should be `## Unreleased`.
4649
* Run the [Prepare patch release workflow](https://github.com/open-telemetry/opentelemetry-python-contrib/actions/workflows/prepare-patch-release.yml).
4750
* Press the "Run workflow" button, then select the release branch from the dropdown list,
4851
e.g. `release/v1.9.x`, and click the "Run workflow" button below that.
4952
* Review and merge the pull request that it creates for updating the version.
53+
* Note: If you are doing a patch release in `-contrib` repo, you should also do an equivalent patch release in `-core` repo (even if there's no fix to release), otherwise tests in CI will fail.
5054

5155
### Preparing a patch release for individual package
5256

_template/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
__version__ = "0.54b0.dev"
15+
__version__ = "0.55b0.dev"

docs/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@
122122
"https://opentelemetry-python.readthedocs.io/en/latest/",
123123
None,
124124
),
125+
"redis": ("https://redis-py.readthedocs.io/en/latest/", None),
125126
}
126127

127128
# http://www.sphinx-doc.org/en/master/config.html#confval-nitpicky
Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1-
OpenTelemetry Redis Instrumentation
2-
===================================
1+
.. include:: ../../../instrumentation/opentelemetry-instrumentation-redis/README.rst
2+
:end-before: References
3+
4+
Usage
5+
-----
36

47
.. automodule:: opentelemetry.instrumentation.redis
58
:members:
69
:undoc-members:
7-
:show-inheritance:
10+
:show-inheritance:

docs/nitpick-exceptions.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ py-class=
4444
psycopg.Connection
4545
psycopg.AsyncConnection
4646
ObjectProxy
47+
fastapi.applications.FastAPI
4748

4849
any=
4950
; API

eachdist.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ sortfirst=
1616
ext/*
1717

1818
[stable]
19-
version=1.33.0.dev
19+
version=1.34.0.dev
2020

2121
packages=
2222
opentelemetry-sdk
@@ -34,7 +34,7 @@ packages=
3434
opentelemetry-api
3535

3636
[prerelease]
37-
version=0.54b0.dev
37+
version=0.55b0.dev
3838

3939
packages=
4040
all

exporter/opentelemetry-exporter-prometheus-remote-write/src/opentelemetry/exporter/prometheus_remote_write/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
__version__ = "0.54b0.dev"
15+
__version__ = "0.55b0.dev"

exporter/opentelemetry-exporter-prometheus-remote-write/test-requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ asgiref==3.8.1
22
certifi==2024.7.4
33
charset-normalizer==3.3.2
44
# We can drop this after bumping baseline to pypy-39
5-
cramjam==2.1.0; platform_python_implementation == "PyPy"
5+
cramjam==2.8.0; platform_python_implementation == "PyPy"
66
cramjam==2.8.4; platform_python_implementation != "PyPy"
77
Deprecated==1.2.14
88
idna==3.7

exporter/opentelemetry-exporter-prometheus-remote-write/tests/test_prometheus_remote_write_exporter.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
# limitations under the License.
1414

1515
import unittest
16+
from platform import python_implementation
1617
from unittest.mock import patch
1718

1819
import pytest
@@ -282,6 +283,10 @@ def test_invalid_tls_config_key_only_param(self):
282283
)
283284

284285

286+
@pytest.mark.skipif(
287+
python_implementation() == "PyPy",
288+
reason="Fails with pypy 3.8, bump cramjam when 3.9 is baseline",
289+
)
285290
# Ensures export is successful with valid export_records and config
286291
@patch("requests.post")
287292
def test_valid_export(mock_post, prom_rw, metric):

0 commit comments

Comments
 (0)