Skip to content

Commit a3875b1

Browse files
authored
Merge branch 'main' into 3_12
2 parents 8775d58 + 762bd8f commit a3875b1

File tree

79 files changed

+946
-173
lines changed

Some content is hidden

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

79 files changed

+946
-173
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ env:
1010
# Otherwise, set variable to the commit of your branch on
1111
# opentelemetry-python-contrib which is compatible with these Core repo
1212
# changes.
13-
CONTRIB_REPO_SHA: 9ce1c26d2732dfbdadbb492fc38c562dcd08ed2e
13+
CONTRIB_REPO_SHA: 7d4573da89c7aef748614e6f1511be3eddf5b230
1414

1515
# This is needed because we do not clone the core repo in contrib builds anymore.
1616
# When running contrib builds as part of core builds, we use actions/checkout@v4 which

.pylintrc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ disable=missing-docstring,
7676
unused-argument, # temp-pylint-upgrade
7777
redefined-builtin,
7878
cyclic-import,
79-
broad-exception-raised,
8079

8180
# Enable the message, report, category or checker with the given id(s). You can
8281
# either give multiple identifier separated by comma (,) or put this option
@@ -481,3 +480,8 @@ max-statements=50
481480

482481
# Minimum number of public methods for a class (see R0903).
483482
min-public-methods=2
483+
484+
[EXCEPTIONS]
485+
486+
# Exceptions that will emit a warning when being caught.
487+
overgeneral-exceptions=builtins.Exception

CHANGELOG.md

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

1010
- Add Python 3.12 to tox
1111
([#3616](https://github.com/open-telemetry/opentelemetry-python/pull/3616))
12+
13+
## Version 1.25.0/0.46b0 (2024-05-30)
14+
15+
- Fix class BoundedAttributes to have RLock rather than Lock
16+
([#3859](https://github.com/open-telemetry/opentelemetry-python/pull/3859))
1217
- Remove thread lock by loading RuntimeContext explicitly.
1318
([#3763](https://github.com/open-telemetry/opentelemetry-python/pull/3763))
1419
- Update proto version to v1.2.0
@@ -38,6 +43,24 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3843
([#3823] (https://github.com/open-telemetry/opentelemetry-python/pull/3823))
3944
- Add span flags to OTLP spans and links
4045
([#3881](https://github.com/open-telemetry/opentelemetry-python/pull/3881))
46+
- Record links with invalid SpanContext if either attributes or TraceState are not empty
47+
([#3917](https://github.com/open-telemetry/opentelemetry-python/pull/3917/))
48+
- Add OpenTelemetry trove classifiers to PyPI packages
49+
([#3913] (https://github.com/open-telemetry/opentelemetry-python/pull/3913))
50+
- Fix prometheus metric name and unit conversion
51+
([#3924](https://github.com/open-telemetry/opentelemetry-python/pull/3924))
52+
- this is a breaking change to prometheus metric names so they comply with the
53+
[specification](https://github.com/open-telemetry/opentelemetry-specification/blob/v1.33.0/specification/compatibility/prometheus_and_openmetrics.md#otlp-metric-points-to-prometheus).
54+
- you can temporarily opt-out of the unit normalization by setting the environment variable
55+
`OTEL_PYTHON_EXPERIMENTAL_DISABLE_PROMETHEUS_UNIT_NORMALIZATION=true`
56+
- common unit abbreviations are converted to Prometheus conventions (`s` -> `seconds`),
57+
following the [collector's implementation](https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/c0b51136575aa7ba89326d18edb4549e7e1bbdb9/pkg/translator/prometheus/normalize_name.go#L108)
58+
- repeated `_` are replaced with a single `_`
59+
- unit annotations (enclosed in curly braces like `{requests}`) are stripped away
60+
- units with slash are converted e.g. `m/s` -> `meters_per_second`.
61+
- The exporter's API is not changed
62+
- Add parameters for Distros and configurators to configure autoinstrumentation in addition to existing environment variables.
63+
([#3864] (https://github.com/open-telemetry/opentelemetry-python/pull/3864))
4164

4265
## Version 1.24.0/0.45b0 (2024-03-28)
4366

CONTRIBUTING.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ on how to become a [**Member**](https://github.com/open-telemetry/community/blob
1010
[**Approver**](https://github.com/open-telemetry/community/blob/main/community-membership.md#approver)
1111
and [**Maintainer**](https://github.com/open-telemetry/community/blob/main/community-membership.md#maintainer).
1212

13+
Before you can contribute, you will need to sign the [Contributor License Agreement](https://docs.linuxfoundation.org/lfx/easycla/contributors).
14+
15+
Please also read the [OpenTelemetry Contributor Guide](https://github.com/open-telemetry/community/blob/main/CONTRIBUTING.md).
16+
1317
# Find your right repo
1418

1519
This is the main repo for OpenTelemetry Python. Nevertheless, there are other repos that are related to this project.

docs/getting_started/tests/test_flask.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,4 @@ def test_flask(self):
4646
output = str(server.stdout.read())
4747
self.assertIn('"name": "GET"', output)
4848
self.assertIn('"name": "example-request"', output)
49-
self.assertIn('"name": "/"', output)
49+
self.assertIn('"name": "GET /"', output)

eachdist.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ sortfirst=
1111
exporter/*
1212

1313
[stable]
14-
version=1.25.0.dev
14+
version=1.26.0.dev
1515

1616
packages=
1717
opentelemetry-sdk
@@ -27,7 +27,7 @@ packages=
2727
opentelemetry-api
2828

2929
[prerelease]
30-
version=0.46b0.dev
30+
version=0.47b0.dev
3131

3232
packages=
3333
opentelemetry-opentracing-shim

exporter/opentelemetry-exporter-opencensus/pyproject.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ authors = [
1414
]
1515
classifiers = [
1616
"Development Status :: 4 - Beta",
17+
"Framework :: OpenTelemetry",
18+
"Framework :: OpenTelemetry :: Exporters",
1719
"Intended Audience :: Developers",
1820
"License :: OSI Approved :: Apache Software License",
1921
"Programming Language :: Python",
@@ -28,7 +30,7 @@ classifiers = [
2830
dependencies = [
2931
"grpcio >= 1.0.0, < 2.0.0",
3032
"opencensus-proto >= 0.1.0, < 1.0.0",
31-
"opentelemetry-api >= 1.25.0.dev",
33+
"opentelemetry-api >= 1.26.0.dev",
3234
"opentelemetry-sdk >= 1.15",
3335
"protobuf ~= 3.13",
3436
"setuptools >= 16.0",

exporter/opentelemetry-exporter-opencensus/src/opentelemetry/exporter/opencensus/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.46b0.dev"
15+
__version__ = "0.47b0.dev"

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ authors = [
1414
]
1515
classifiers = [
1616
"Development Status :: 5 - Production/Stable",
17+
"Framework :: OpenTelemetry",
18+
"Framework :: OpenTelemetry :: Exporters",
1719
"Intended Audience :: Developers",
1820
"License :: OSI Approved :: Apache Software License",
1921
"Programming Language :: Python",
@@ -25,7 +27,7 @@ classifiers = [
2527
"Programming Language :: Python :: 3.12",
2628
]
2729
dependencies = [
28-
"opentelemetry-proto == 1.25.0.dev",
30+
"opentelemetry-proto == 1.26.0.dev",
2931
]
3032

3133
[project.urls]

exporter/opentelemetry-exporter-otlp-proto-common/src/opentelemetry/exporter/otlp/proto/common/_internal/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,10 @@ def _encode_attributes(
106106
if attributes:
107107
pb2_attributes = []
108108
for key, value in attributes.items():
109+
# pylint: disable=broad-exception-caught
109110
try:
110111
pb2_attributes.append(_encode_key_value(key, value))
111-
except Exception as error: # pylint: disable=broad-except
112+
except Exception as error:
112113
_logger.exception(error)
113114
else:
114115
pb2_attributes = None

0 commit comments

Comments
 (0)