Skip to content

Commit 3f97bac

Browse files
authored
Merge branch 'main' into Fix-bug-when-labels-are-ordered-differently
2 parents 833acee + 29c293f commit 3f97bac

File tree

64 files changed

+782
-193
lines changed

Some content is hidden

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

64 files changed

+782
-193
lines changed

.github/workflows/benchmarks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
key: v3-tox-cache-${{ env.RUN_MATRIX_COMBINATION }}-${{ hashFiles('tox.ini',
3737
'dev-requirements.txt') }}-core
3838
- name: Run tox
39-
run: tox -f ${{ matrix.python-version }}-sdk -- -k opentelemetry-sdk/tests/performance/benchmarks --benchmark-json=output.json
39+
run: tox -f ${{ matrix.python-version }}-sdk -- -k opentelemetry-sdk/tests/performance/benchmarks --benchmark-json=opentelemetry-sdk/tests/output.json
4040
- name: Report on SDK benchmark results
4141
uses: benchmark-action/github-action-benchmark@v1
4242
with:

.pylintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ notes=FIXME,
166166
# List of decorators that produce context managers, such as
167167
# contextlib.contextmanager. Add to this list to register other decorators that
168168
# produce valid context managers.
169-
contextmanager-decorators=contextlib.contextmanager
169+
contextmanager-decorators=contextlib.contextmanager, _agnosticcontextmanager
170170

171171
# List of members which are set dynamically and missed by pylint inference
172172
# system, and so shouldn't trigger E1101 when accessed. Python regular

CHANGELOG.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,22 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## Unreleased
99

10+
- Make `tracer.start_as_current_span()` decorator work with async functions
11+
([#3633](https://github.com/open-telemetry/opentelemetry-python/pull/3633))
1012
- Fix python 3.12 deprecation warning
1113
([#3751](https://github.com/open-telemetry/opentelemetry-python/pull/3751))
12-
- Prometheus exporter sort label keys to prevent duplicate metrics when user input changes order ([#3698]https://github.com/open-telemetry/opentelemetry-python/pull/3698)
14+
- Prometheus exporter sort label keys to prevent duplicate metrics when user input changes order
15+
([#3698](https://github.com/open-telemetry/opentelemetry-python/pull/3698))
16+
- bump mypy to 0.982
17+
([#3776](https://github.com/open-telemetry/opentelemetry-python/pull/3776))
18+
- Add support for OTEL_SDK_DISABLED environment variable
19+
([#3648](https://github.com/open-telemetry/opentelemetry-python/pull/3648))
20+
- Fix ValueError message for PeriodicExportingMetricsReader
21+
([#3769](https://github.com/open-telemetry/opentelemetry-python/pull/3769))
22+
- Make span.record_exception more robust
23+
([#3778](https://github.com/open-telemetry/opentelemetry-python/pull/3778))
24+
- Fix license field in pyproject.toml files
25+
([#3803](https://github.com/open-telemetry/opentelemetry-python/pull/3803))
1326

1427
## Version 1.23.0/0.44b0 (2024-02-23)
1528

@@ -34,7 +47,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3447
- Fix explicit bucket histogram aggregation
3548
([#3429](https://github.com/open-telemetry/opentelemetry-python/pull/3429))
3649
- Add `code.lineno`, `code.function` and `code.filepath` to all logs
37-
([#3645](https://github.com/open-telemetry/opentelemetry-python/pull/3645))
50+
([#3675](https://github.com/open-telemetry/opentelemetry-python/pull/3675))
3851
- Add Synchronous Gauge instrument
3952
([#3462](https://github.com/open-telemetry/opentelemetry-python/pull/3462))
4053
- Drop support for 3.7

dev-requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ flake8==6.1.0
33
isort==5.12.0
44
black==22.3.0
55
httpretty==1.1.4
6-
mypy==0.931
6+
mypy==0.982
77
sphinx==7.1.2
88
sphinx-rtd-theme==2.0.0rc4
99
sphinx-autodoc-typehints==1.25.2

docs/examples/error_handler/error_handler_0/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ name = "error-handler-0"
77
dynamic = ["version"]
88
description = "This is just an error handler example package"
99
readme = "README.rst"
10-
license = "Apache-2.0"
10+
license = {text = "Apache-2.0"}
1111
requires-python = ">=3.8"
1212
authors = [
1313
{ name = "OpenTelemetry Authors", email = "[email protected]" },

docs/examples/error_handler/error_handler_1/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ name = "error-handler-1"
77
dynamic = ["version"]
88
description = "This is just an error handler example package"
99
readme = "README.rst"
10-
license = "Apache-2.0"
10+
license = {text = "Apache-2.0"}
1111
requires-python = ">=3.8"
1212
authors = [
1313
{ name = "OpenTelemetry Authors", email = "[email protected]" },

docs/examples/logs/README.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Start the Collector locally to see data being exported. Write the following file
2121
2222
exporters:
2323
logging:
24+
verbosity: detailed
2425
2526
service:
2627
pipelines:

docs/examples/logs/otel-collector-config.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ processors:
1313
service:
1414
pipelines:
1515
logs:
16+
receivers: [otlp]
17+
processors: [batch]
18+
exporters: [logging]
19+
traces:
1620
receivers: [otlp]
1721
processors: [batch]
1822
exporters: [logging]

exporter/opentelemetry-exporter-opencensus/pyproject.toml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ name = "opentelemetry-exporter-opencensus"
77
dynamic = ["version"]
88
description = "OpenCensus Exporter"
99
readme = "README.rst"
10-
license = "Apache-2.0"
10+
license = {text = "Apache-2.0"}
1111
requires-python = ">=3.8"
1212
authors = [
1313
{ name = "OpenTelemetry Authors", email = "[email protected]" },
@@ -33,9 +33,6 @@ dependencies = [
3333
"setuptools >= 16.0",
3434
]
3535

36-
[project.optional-dependencies]
37-
test = []
38-
3936
[project.entry-points.opentelemetry_traces_exporter]
4037
opencensus = "opentelemetry.exporter.opencensus.trace_exporter:OpenCensusSpanExporter"
4138

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
asgiref==3.7.2
2+
attrs==23.2.0
3+
Deprecated==1.2.14
4+
flaky==3.7.0
5+
grpcio==1.62.0
6+
importlib-metadata==6.11.0
7+
iniconfig==2.0.0
8+
opencensus-proto==0.1.0
9+
packaging==23.2
10+
pluggy==1.4.0
11+
protobuf==3.20.3
12+
py==1.11.0
13+
py-cpuinfo==9.0.0
14+
pytest==7.1.3
15+
pytest-benchmark==4.0.0
16+
tomli==2.0.1
17+
typing_extensions==4.10.0
18+
wrapt==1.16.0
19+
zipp==3.17.0
20+
-e opentelemetry-api
21+
-e opentelemetry-sdk
22+
-e opentelemetry-semantic-conventions
23+
-e exporter/opentelemetry-exporter-opencensus

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ name = "opentelemetry-exporter-otlp-proto-common"
77
dynamic = ["version"]
88
description = "OpenTelemetry Protobuf encoding"
99
readme = "README.rst"
10-
license = "Apache-2.0"
10+
license = {text = "Apache-2.0"}
1111
requires-python = ">=3.8"
1212
authors = [
1313
{ name = "OpenTelemetry Authors", email = "[email protected]" },
@@ -27,9 +27,6 @@ dependencies = [
2727
"opentelemetry-proto == 1.24.0.dev",
2828
]
2929

30-
[project.optional-dependencies]
31-
test = []
32-
3330
[project.urls]
3431
Homepage = "https://github.com/open-telemetry/opentelemetry-python/tree/main/exporter/opentelemetry-exporter-otlp-proto-common"
3532

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
asgiref==3.7.2
2+
attrs==23.2.0
3+
Deprecated==1.2.14
4+
flaky==3.7.0
5+
importlib-metadata==6.11.0
6+
iniconfig==2.0.0
7+
packaging==23.2
8+
pluggy==1.4.0
9+
protobuf==4.25.3
10+
py==1.11.0
11+
py-cpuinfo==9.0.0
12+
pytest==7.1.3
13+
pytest-benchmark==4.0.0
14+
tomli==2.0.1
15+
typing_extensions==4.10.0
16+
wrapt==1.16.0
17+
zipp==3.17.0
18+
-e opentelemetry-proto
19+
-e exporter/opentelemetry-exporter-otlp-proto-common

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ name = "opentelemetry-exporter-otlp-proto-grpc"
77
dynamic = ["version"]
88
description = "OpenTelemetry Collector Protobuf over gRPC Exporter"
99
readme = "README.rst"
10-
license = "Apache-2.0"
10+
license = {text = "Apache-2.0"}
1111
requires-python = ">=3.8"
1212
authors = [
1313
{ name = "OpenTelemetry Authors", email = "[email protected]" },

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

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ name = "opentelemetry-exporter-otlp-proto-http"
77
dynamic = ["version"]
88
description = "OpenTelemetry Collector Protobuf over HTTP Exporter"
99
readme = "README.rst"
10-
license = "Apache-2.0"
10+
license = {text = "Apache-2.0"}
1111
requires-python = ">=3.8"
1212
authors = [
1313
{ name = "OpenTelemetry Authors", email = "[email protected]" },
@@ -33,11 +33,6 @@ dependencies = [
3333
"requests ~= 2.7",
3434
]
3535

36-
[project.optional-dependencies]
37-
test = [
38-
"responses >= 0.22.0, < 0.25",
39-
]
40-
4136
[project.entry-points.opentelemetry_traces_exporter]
4237
otlp_proto_http = "opentelemetry.exporter.otlp.proto.http.trace_exporter:OTLPSpanExporter"
4338

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
asgiref==3.7.2
2+
attrs==23.2.0
3+
certifi==2024.2.2
4+
charset-normalizer==3.3.2
5+
Deprecated==1.2.14
6+
flaky==3.7.0
7+
googleapis-common-protos==1.62.0
8+
idna==3.6
9+
importlib-metadata==6.11.0
10+
iniconfig==2.0.0
11+
packaging==23.2
12+
pluggy==1.4.0
13+
protobuf==3.19.6
14+
py==1.11.0
15+
py-cpuinfo==9.0.0
16+
pytest==7.1.3
17+
pytest-benchmark==4.0.0
18+
PyYAML==6.0.1
19+
requests==2.31.0
20+
responses==0.24.1
21+
tomli==2.0.1
22+
typing_extensions==4.10.0
23+
urllib3==2.2.1
24+
wrapt==1.16.0
25+
zipp==3.17.0
26+
-e opentelemetry-api
27+
-e exporter/opentelemetry-exporter-otlp-proto-common
28+
-e opentelemetry-proto
29+
-e opentelemetry-sdk
30+
-e opentelemetry-semantic-conventions
31+
-e exporter/opentelemetry-exporter-otlp-proto-http
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
asgiref==3.7.2
2+
attrs==23.2.0
3+
certifi==2024.2.2
4+
charset-normalizer==3.3.2
5+
Deprecated==1.2.14
6+
flaky==3.7.0
7+
googleapis-common-protos==1.62.0
8+
idna==3.6
9+
importlib-metadata==6.11.0
10+
iniconfig==2.0.0
11+
packaging==23.2
12+
pluggy==1.4.0
13+
protobuf==4.25.3
14+
py==1.11.0
15+
py-cpuinfo==9.0.0
16+
pytest==7.1.3
17+
pytest-benchmark==4.0.0
18+
PyYAML==6.0.1
19+
requests==2.31.0
20+
responses==0.24.1
21+
tomli==2.0.1
22+
typing_extensions==4.10.0
23+
urllib3==2.2.1
24+
wrapt==1.16.0
25+
zipp==3.17.0
26+
-e opentelemetry-api
27+
-e exporter/opentelemetry-exporter-otlp-proto-common
28+
-e opentelemetry-proto
29+
-e opentelemetry-sdk
30+
-e opentelemetry-semantic-conventions
31+
-e exporter/opentelemetry-exporter-otlp-proto-http

exporter/opentelemetry-exporter-otlp/pyproject.toml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ name = "opentelemetry-exporter-otlp"
77
dynamic = ["version"]
88
description = "OpenTelemetry Collector Exporters"
99
readme = "README.rst"
10-
license = "Apache-2.0"
10+
license = {text = "Apache-2.0"}
1111
requires-python = ">=3.8"
1212
authors = [
1313
{ name = "OpenTelemetry Authors", email = "[email protected]" },
@@ -29,9 +29,6 @@ dependencies = [
2929
"opentelemetry-exporter-otlp-proto-http == 1.24.0.dev",
3030
]
3131

32-
[project.optional-dependencies]
33-
test = []
34-
3532
[project.entry-points.opentelemetry_logs_exporter]
3633
otlp = "opentelemetry.exporter.otlp.proto.grpc._log_exporter:OTLPLogExporter"
3734

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
asgiref==3.7.2
2+
attrs==23.2.0
3+
Deprecated==1.2.14
4+
flaky==3.7.0
5+
importlib-metadata==6.11.0
6+
iniconfig==2.0.0
7+
packaging==23.2
8+
pluggy==1.4.0
9+
py==1.11.0
10+
py-cpuinfo==9.0.0
11+
pytest==7.1.3
12+
pytest-benchmark==4.0.0
13+
tomli==2.0.1
14+
typing_extensions==4.10.0
15+
wrapt==1.16.0
16+
zipp==3.17.0
17+
-e opentelemetry-api
18+
-e exporter/opentelemetry-exporter-otlp-proto-common
19+
-e exporter/opentelemetry-exporter-otlp-proto-grpc
20+
-e exporter/opentelemetry-exporter-otlp-proto-http
21+
-e opentelemetry-proto
22+
-e opentelemetry-sdk
23+
-e opentelemetry-semantic-conventions
24+
-e exporter/opentelemetry-exporter-otlp

exporter/opentelemetry-exporter-prometheus/pyproject.toml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ name = "opentelemetry-exporter-prometheus"
77
dynamic = ["version"]
88
description = "Prometheus Metric Exporter for OpenTelemetry"
99
readme = "README.rst"
10-
license = "Apache-2.0"
10+
license = {text = "Apache-2.0"}
1111
requires-python = ">=3.8"
1212
authors = [
1313
{ name = "OpenTelemetry Authors", email = "[email protected]" },
@@ -30,9 +30,6 @@ dependencies = [
3030
"prometheus_client >= 0.5.0, < 1.0.0",
3131
]
3232

33-
[project.optional-dependencies]
34-
test = []
35-
3633
[project.entry-points.opentelemetry_metrics_exporter]
3734
prometheus = "opentelemetry.exporter.prometheus:_AutoPrometheusMetricReader"
3835

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
asgiref==3.7.2
2+
attrs==23.2.0
3+
Deprecated==1.2.14
4+
flaky==3.7.0
5+
importlib-metadata==6.11.0
6+
iniconfig==2.0.0
7+
packaging==23.2
8+
pluggy==1.4.0
9+
prometheus_client==0.20.0
10+
py==1.11.0
11+
py-cpuinfo==9.0.0
12+
pytest==7.1.3
13+
pytest-benchmark==4.0.0
14+
tomli==2.0.1
15+
typing_extensions==4.10.0
16+
wrapt==1.16.0
17+
zipp==3.17.0
18+
-e opentelemetry-api
19+
-e opentelemetry-sdk
20+
-e opentelemetry-semantic-conventions
21+
-e exporter/opentelemetry-exporter-prometheus

exporter/opentelemetry-exporter-zipkin-json/pyproject.toml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ name = "opentelemetry-exporter-zipkin-json"
77
dynamic = ["version"]
88
description = "Zipkin Span JSON Exporter for OpenTelemetry"
99
readme = "README.rst"
10-
license = "Apache-2.0"
10+
license = {text = "Apache-2.0"}
1111
requires-python = ">=3.8"
1212
authors = [
1313
{ name = "OpenTelemetry Authors", email = "[email protected]" },
@@ -30,9 +30,6 @@ dependencies = [
3030
"requests ~= 2.7",
3131
]
3232

33-
[project.optional-dependencies]
34-
test = []
35-
3633
[project.entry-points.opentelemetry_traces_exporter]
3734
zipkin_json = "opentelemetry.exporter.zipkin.json:ZipkinExporter"
3835

0 commit comments

Comments
 (0)