Skip to content

Commit 4ae3e2c

Browse files
Merge branch 'main' into logs-api-accept-whole-context
2 parents aaea217 + c9ad4bc commit 4ae3e2c

File tree

70 files changed

+338
-891
lines changed

Some content is hidden

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

70 files changed

+338
-891
lines changed

.github/workflows/fossa.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
steps:
1515
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1616

17-
- uses: fossas/fossa-action@c0a7d013f84c8ee5e910593186598625513cc1e4 # v1.6.0
17+
- uses: fossas/fossa-action@3ebcea1862c6ffbd5cf1b4d0bd6b3fe7bd6f2cac # v1.7.0
1818
with:
1919
api-key: ${{secrets.FOSSA_API_KEY}}
2020
team: OpenTelemetry

CHANGELOG.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1212
- Refactor `BatchLogRecordProcessor` to simplify code and make the control flow more
1313
clear ([#4562](https://github.com/open-telemetry/opentelemetry-python/pull/4562/)
1414
and [#4535](https://github.com/open-telemetry/opentelemetry-python/pull/4535)).
15+
- Use PEP702 for marking deprecations
16+
([#4522](https://github.com/open-telemetry/opentelemetry-python/pull/4522))
17+
- Refactor `BatchLogRecordProcessor` and `BatchSpanProcessor` to simplify code
18+
and make the control flow more clear ([#4562](https://github.com/open-telemetry/opentelemetry-python/pull/4562/)
19+
[#4535](https://github.com/open-telemetry/opentelemetry-python/pull/4535), and
20+
[#4580](https://github.com/open-telemetry/opentelemetry-python/pull/4580)).
21+
- Remove log messages from `BatchLogRecordProcessor.emit`, this caused the program
22+
to crash at shutdown with a max recursion error ([#4586](https://github.com/open-telemetry/opentelemetry-python/pull/4586)).
23+
- Configurable max retry timeout for grpc exporter
24+
([#4333](https://github.com/open-telemetry/opentelemetry-python/pull/4333))
25+
- opentelemetry-api: allow importlib-metadata 8.7.0
26+
([#4593](https://github.com/open-telemetry/opentelemetry-python/pull/4593))
27+
- opentelemetry-test-utils: assert explicit bucket boundaries in histogram metrics
28+
([#4595](https://github.com/open-telemetry/opentelemetry-python/pull/4595))
1529
- Logging API and Events API accept SpanContext instead of trace_id, span_id, trace_flags
1630
([#4584](https://github.com/open-telemetry/opentelemetry-python/pull/4584))
1731

@@ -95,8 +109,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
95109
([#4353](https://github.com/open-telemetry/opentelemetry-python/pull/4353))
96110
- sdk: don't log or print warnings when the SDK has been disabled
97111
([#4371](https://github.com/open-telemetry/opentelemetry-python/pull/4371))
98-
- Configurable max retry timeout for grpc exporter
99-
([#4333](https://github.com/open-telemetry/opentelemetry-python/pull/4333))
100112
- Fix span context manager typing by using ParamSpec from typing_extensions
101113
([#4389](https://github.com/open-telemetry/opentelemetry-python/pull/4389))
102114
- Fix serialization of None values in logs body to match 1.31.0+ data model

RELEASING.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +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-contrib/blob/main/RELEASING.md) for the contrib repo up until this same point.
13-
* Change the CONTRIB_REPO_SHA of core PRs to point to their counterpart in contrib.
14-
* Change the CORE_REPO_SHA of contrib PRs to point to their counterpart in core.
12+
* The builds will fail for the release PR because of validation rules. Follow the [release workflow](https://github.com/open-telemetry/opentelemetry-python-contrib/blob/main/RELEASING.md) for the contrib 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
1514
* Release builds now should pass.
1615
* Merge the release PR.
1716
* Merge the PR to main (this can be done separately from [making the release](#making-the-release))
@@ -23,13 +22,16 @@
2322
* Press the "Run workflow" button, then select the release branch from the dropdown list,
2423
e.g. `release/v1.9.x`, then enter the pull request number that you want to backport,
2524
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.
2627
* Review and merge the backport pull request that it generates.
2728
* Merge a pull request to the release branch updating the `CHANGELOG.md`.
2829
* The heading for the unreleased entries should be `## Unreleased`.
2930
* Run the [Prepare patch release workflow](https://github.com/open-telemetry/opentelemetry-python/actions/workflows/prepare-patch-release.yml).
3031
* Press the "Run workflow" button, then select the release branch from the dropdown list,
3132
e.g. `release/v1.9.x`, and click the "Run workflow" button below that.
3233
* 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.
3335

3436
## Making the release
3537

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
Deprecated==1.2.13
21
opentelemetry-api==1.15.0
32
opentelemetry-sdk==1.15.0
43
opentelemetry-semantic-conventions==0.36b0
5-
typing_extensions==4.3.0
4+
typing_extensions==4.5.0
65
wrapt==1.14.1
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
Deprecated==1.2.13
21
opentelemetry-api==1.12.0
32
opentelemetry-sdk==1.12.0
43
opentelemetry-semantic-conventions==0.33b0
5-
typing_extensions==4.3.0
4+
typing_extensions==4.5.0
65
wrapt==1.14.1

docs/getting_started/tests/requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ attrs==23.1.0
33
certifi==2024.7.4
44
charset-normalizer==2.0.12
55
click==8.1.7
6-
Deprecated==1.2.14
76
Flask==2.3.3
87
idna==3.7
98
importlib-metadata==6.8.0

exporter/opentelemetry-exporter-opencensus/test-requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
asgiref==3.7.2
2-
Deprecated==1.2.14
32
grpcio==1.66.2
43
importlib-metadata==6.11.0
54
iniconfig==2.0.0

exporter/opentelemetry-exporter-otlp-proto-common/test-requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
asgiref==3.7.2
2-
Deprecated==1.2.14
32
importlib-metadata==6.11.0
43
iniconfig==2.0.0
54
packaging==24.0

exporter/opentelemetry-exporter-otlp-proto-grpc/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ classifiers = [
2828
"Programming Language :: Python :: 3.13",
2929
]
3030
dependencies = [
31-
"Deprecated >= 1.2.6",
3231
"googleapis-common-protos ~= 1.52",
3332
"grpcio >= 1.63.2, < 2.0.0; python_version < '3.13'",
3433
"grpcio >= 1.66.2, < 2.0.0; python_version >= '3.13'",
3534
"opentelemetry-api ~= 1.15",
3635
"opentelemetry-proto == 1.34.0.dev",
3736
"opentelemetry-sdk ~= 1.34.0.dev",
3837
"opentelemetry-exporter-otlp-proto-common == 1.34.0.dev",
38+
"typing-extensions >= 4.5.0",
3939
]
4040

4141
[project.entry-points.opentelemetry_logs_exporter]

exporter/opentelemetry-exporter-otlp-proto-grpc/src/opentelemetry/exporter/otlp/proto/grpc/exporter.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434
from typing import Sequence as TypingSequence
3535
from urllib.parse import urlparse
3636

37-
from deprecated import deprecated
3837
from google.rpc.error_details_pb2 import RetryInfo
38+
from typing_extensions import deprecated
3939

4040
from grpc import (
4141
ChannelCredentials,
@@ -108,8 +108,7 @@ def environ_to_compression(environ_key: str) -> Optional[Compression]:
108108

109109

110110
@deprecated(
111-
version="1.18.0",
112-
reason="Use one of the encoders from opentelemetry-exporter-otlp-proto-common instead",
111+
"Use one of the encoders from opentelemetry-exporter-otlp-proto-common instead. Deprecated since version 1.18.0.",
113112
)
114113
def get_resource_data(
115114
sdk_resource_scope_data: Dict[SDKResource, ResourceDataT],

0 commit comments

Comments
 (0)