Skip to content

Commit fe18372

Browse files
committed
Merge branch 'merge_main_3' into metrics_new
2 parents 0243aa4 + a1feaf4 commit fe18372

File tree

68 files changed

+2088
-3574
lines changed

Some content is hidden

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

68 files changed

+2088
-3574
lines changed

.github/pull_request_template.md

-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ Please describe the tests that you ran to verify your changes. Provide instructi
2323

2424
Answer the following question based on these examples of changes that would require a Contrib Repo Change:
2525
- [The OTel specification](https://github.com/open-telemetry/opentelemetry-specification) has changed which prompted this PR to update the method interfaces of `opentelemetry-api/` or `opentelemetry-sdk/`
26-
- The method interfaces of `opentelemetry-instrumentation/` have changed
2726
- The method interfaces of `test/util` have changed
2827
- Scripts in `scripts/` that were copied over to the Contrib repo have changed
2928
- Configuration files that were copied over to the Contrib repo have changed (when consistency between repositories is applicable) such as in

.github/workflows/test.yml

+2-2
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: 4a4d889b1876323d7f70507b5e4d079f454fe0d6
13+
CONTRIB_REPO_SHA: c2e674983a265e54c5eb14e376459a992498aae6
1414
# This is needed because we do not clone the core repo in contrib builds anymore.
1515
# When running contrib builds as part of core builds, we use actions/checkout@v2 which
1616
# does not set an environment variable (simply just runs tox), which is different when
@@ -34,7 +34,7 @@ jobs:
3434
fail-fast: false # ensures the entire test matrix is run, even if one permutation fails
3535
matrix:
3636
python-version: [ py36, py37, py38, py39, pypy3 ]
37-
package: ["api", "sdk", "instrumentation", "semantic", "getting", "distro" , "shim", "exporter", "protobuf", "propagator"]
37+
package: ["api", "sdk", "semantic", "getting", "shim", "exporter", "protobuf", "propagator"]
3838
os: [ ubuntu-20.04, windows-2019 ]
3939
steps:
4040
- name: Checkout Core Repo @ SHA - ${{ github.sha }}

CHANGELOG.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased](https://github.com/open-telemetry/opentelemetry-python/compare/v1.6.0-0.25b0...HEAD)
88

9+
- Upgrade GRPC/protobuf related dependency and regenerate otlp protobufs
10+
([#2201](https://github.com/open-telemetry/opentelemetry-python/pull/2201))
11+
- Propagation: only warn about oversized baggage headers when headers exist
12+
([#2212](https://github.com/open-telemetry/opentelemetry-python/pull/2212))
913
- Return proxy instruments from ProxyMeter
10-
[[#2169](https://github.com/open-telemetry/opentelemetry-python/pull/2169)]
14+
([#2169](https://github.com/open-telemetry/opentelemetry-python/pull/2169))
1115
- Make Measurement a concrete class
1216
([#2153](https://github.com/open-telemetry/opentelemetry-python/pull/2153))
1317
- Add metrics API

dev-requirements.txt

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ httpretty~=1.0
66
mypy==0.812
77
sphinx~=3.5.4
88
sphinx-rtd-theme~=0.5
9-
sphinx-autodoc-typehints
9+
sphinx-autodoc-typehints~=1.12.0
1010
pytest>=6.0
1111
pytest-cov>=2.8
1212
readme-renderer~=24.0
13-
grpcio-tools==1.29.0
14-
mypy-protobuf>=1.23
15-
protobuf>=3.13.0
13+
grpcio-tools~=1.41.0
14+
mypy-protobuf~=3.0.0
15+
protobuf~=3.18.1

docs-requirements.txt

-2
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ sphinx-jekyll-builder
88
# doesn't work for pkg_resources.
99
./opentelemetry-api
1010
./opentelemetry-semantic-conventions
11-
./opentelemetry-instrumentation
1211
./opentelemetry-sdk
13-
./opentelemetry-instrumentation
1412

1513
# Required by instrumentation and exporter packages
1614
ddtrace>=0.34.0

docs/examples/django/README.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ Auto Instrumentation
113113
--------------------
114114

115115
This same example can be run using auto instrumentation. Comment out the call
116-
to ``DjangoInstrumento().instrument()`` in ``main``, then Run the django app
116+
to ``DjangoInstrumentor().instrument()`` in ``main``, then Run the django app
117117
with ``opentelemetry-instrument python manage.py runserver --noreload``.
118118
Repeat the steps with the client, the result should be the same.
119119

eachdist.ini

-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
sortfirst=
66
opentelemetry-api
77
opentelemetry-sdk
8-
opentelemetry-instrumentation
98
opentelemetry-proto
109
opentelemetry-distro
1110
tests/util
@@ -39,7 +38,6 @@ packages=
3938
opentelemetry-distro
4039
opentelemetry-semantic-conventions
4140
opentelemetry-test
42-
opentelemetry-instrumentation
4341
tests
4442

4543
[experimental]

opentelemetry-api/src/opentelemetry/baggage/propagation/__init__.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,10 @@ def extract(
5353
getter.get(carrier, self._BAGGAGE_HEADER_NAME)
5454
)
5555

56-
if not header or len(header) > self._MAX_HEADER_LENGTH:
56+
if not header:
57+
return context
58+
59+
if len(header) > self._MAX_HEADER_LENGTH:
5760
_logger.warning(
5861
"Baggage header `%s` exceeded the maximum number of bytes per baggage-string",
5962
header,

opentelemetry-distro/MANIFEST.in

-7
This file was deleted.

opentelemetry-distro/README.rst

-23
This file was deleted.

opentelemetry-distro/setup.py

-29
This file was deleted.

opentelemetry-distro/src/opentelemetry/distro/__init__.py

-34
This file was deleted.

opentelemetry-distro/src/opentelemetry/distro/py.typed

Whitespace-only changes.

opentelemetry-distro/tests/__init__.py

Whitespace-only changes.

opentelemetry-distro/tests/test_distro.py

-38
This file was deleted.

0 commit comments

Comments
 (0)