Skip to content

Commit 3e1711c

Browse files
Merge branch 'main' into mg-use-request-id-instead-of-thread-id
2 parents 282da72 + a7a4f71 commit 3e1711c

File tree

140 files changed

+1526
-857
lines changed

Some content is hidden

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

140 files changed

+1526
-857
lines changed

.github/component_owners.yml

+3
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,6 @@ components:
4646

4747
instrumentation/opentelemetry-instrumentation-urllib3:
4848
- shalevr
49+
50+
instrumentation/opentelemetry-instrumentation-sqlalchemy:
51+
- shalevr

.github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ jobs:
125125
--title "Version ${STABLE_VERSION}/${UNSTABLE_VERSION}" \
126126
--notes-file /tmp/release-notes.txt \
127127
--discussion-category announcements \
128-
v$STABLE_VERSION
128+
v$UNSTABLE_VERSION
129129
130130
- uses: actions/checkout@v3
131131
with:

.github/workflows/test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- 'release/*'
77
pull_request:
88
env:
9-
CORE_REPO_SHA: d0bb12b34b0c487198c935001636b6163485a50f
9+
CORE_REPO_SHA: 2387b4465d930b020df79692a8097e1d54b66ec1
1010

1111
jobs:
1212
build:

CHANGELOG.md

+34
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,49 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## Unreleased
99

10+
- `opentelemetry-instrumentation-system-metrics` Add `process.` prefix to `runtime.memory`, `runtime.cpu.time`, and `runtime.gc_count`. Change `runtime.memory` from count to UpDownCounter. ([#1735](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/1735))
11+
12+
### Added
13+
14+
- Add `excluded_urls` functionality to `urllib` and `urllib3` instrumentations
15+
([#1733](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/1733))
16+
- Make Django request span attributes available for `start_span`.
17+
([#1730](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/1730))
18+
19+
### Fixed
20+
21+
- Fix `AttributeError` when AWS Lambda handler receives a list event
22+
([#1738](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/1738))
23+
24+
25+
## Version 1.17.0/0.38b0 (2023-03-22)
26+
1027
### Added
1128

1229
- Add connection attributes to sqlalchemy connect span
1330
([#1608](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/1608))
31+
- Add support for enabling Redis sanitization from environment variable
32+
([#1690](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/1690))
33+
- Add metrics instrumentation for sqlalchemy
34+
([#1645](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/1645))
1435

1536
### Fixed
1637

1738
- Fix Flask instrumentation to only close the span if it was created by the same thread.
1839
([#1654](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/1654))
40+
- Fix confluent-kafka instrumentation by allowing Producer headers to be dict or list
41+
([#1655](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/1655))
42+
- `opentelemetry-instrumentation-system-metrics` Fix initialization of the instrumentation class when configuration is provided
43+
([#1438](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/1439))
44+
- Fix exception in Urllib3 when dealing with filelike body.
45+
([#1399](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/1399))
46+
- Fix httpx resource warnings
47+
([#1695](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/1695))
48+
49+
### Changed
50+
51+
- `opentelemetry-instrumentation-requests` Replace `name_callback` and `span_callback` with standard `response_hook` and `request_hook` callbacks
52+
([#670](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/670))
1953

2054
## Version 1.16.0/0.37b0 (2023-02-17)
2155

RELEASING.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Preparing a new major or minor release
44

5-
* Run the [Prepare release branch workflow](https://github.com/open-telemetry/opentelemetry-python/actions/workflows/prepare-release-branch.yml).
5+
* Run the [Prepare release branch workflow](https://github.com/open-telemetry/opentelemetry-python-contrib/actions/workflows/prepare-release-branch.yml).
66
* Press the "Run workflow" button, and leave the default branch `main` selected.
77
* If making a pre-release of stable components (e.g. release candidate),
88
enter the pre-release version number, e.g. `1.9.0rc2`.
@@ -13,21 +13,21 @@
1313
## Preparing a new patch release
1414

1515
* Backport pull request(s) to the release branch.
16-
* Run the [Backport workflow](https://github.com/open-telemetry/opentelemetry-python/actions/workflows/backport.yml).
16+
* Run the [Backport workflow](https://github.com/open-telemetry/opentelemetry-python-contrib/actions/workflows/backport.yml).
1717
* Press the "Run workflow" button, then select the release branch from the dropdown list,
1818
e.g. `release/v1.9.x`, then enter the pull request number that you want to backport,
1919
then click the "Run workflow" button below that.
2020
* Review and merge the backport pull request that it generates.
2121
* Merge a pull request to the release branch updating the `CHANGELOG.md`.
2222
* The heading for the unreleased entries should be `## Unreleased`.
23-
* Run the [Prepare patch release workflow](https://github.com/open-telemetry/opentelemetry-python/actions/workflows/prepare-patch-release.yml).
23+
* Run the [Prepare patch release workflow](https://github.com/open-telemetry/opentelemetry-python-contrib/actions/workflows/prepare-patch-release.yml).
2424
* Press the "Run workflow" button, then select the release branch from the dropdown list,
2525
e.g. `release/v1.9.x`, and click the "Run workflow" button below that.
2626
* Review and merge the pull request that it creates for updating the version.
2727

2828
## Making the release
2929

30-
* Run the [Release workflow](https://github.com/open-telemetry/opentelemetry-python/actions/workflows/release.yml).
30+
* Run the [Release workflow](https://github.com/open-telemetry/opentelemetry-python-contrib/actions/workflows/release.yml).
3131
* Press the "Run workflow" button, then select the release branch from the dropdown list,
3232
e.g. `release/v1.9.x`, and click the "Run workflow" button below that.
3333
* This workflow will publish the artifacts and publish a GitHub release with release notes based on the change log.
@@ -69,9 +69,9 @@
6969
## After the release
7070

7171
* Check PyPI
72-
* This should be handled automatically on release by the [publish action](https://github.com/open-telemetry/opentelemetry-python/blob/main/.github/workflows/publish.yml).
73-
* Check the [action logs](https://github.com/open-telemetry/opentelemetry-python/actions?query=workflow%3APublish) to make sure packages have been uploaded to PyPI
74-
* Check the release history (e.g. https://pypi.org/project/opentelemetry-api/#history) on PyPI
72+
* This should be handled automatically on release by the [publish action](https://github.com/open-telemetry/opentelemetry-python-contrib/blob/main/.github/workflows/release.yml).
73+
* Check the [action logs](https://github.com/open-telemetry/opentelemetry-python-contrib/actions/workflows/release.yml) to make sure packages have been uploaded to PyPI
74+
* Check the release history (e.g. https://pypi.org/project/opentelemetry-instrumentation/#history) on PyPI
7575
* If for some reason the action failed, see [Publish failed](#publish-failed) below
7676
* Move stable tag
7777
* Run the following (TODO automate):

_template/version.py

+1-1
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.38b0.dev"
15+
__version__ = "0.39b0.dev"

eachdist.ini

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ sortfirst=
1616
ext/*
1717

1818
[stable]
19-
version=1.17.0.dev
19+
version=1.18.0.dev
2020

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

3636
[prerelease]
37-
version=0.38b0.dev
37+
version=0.39b0.dev
3838

3939
packages=
4040
all

exporter/opentelemetry-exporter-prometheus-remote-write/example/Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ WORKDIR /code
66
COPY . .
77

88
RUN pip install -e .
9-
RUN pip install -r ./examples/requirements.txt
9+
RUN pip install -r ./example/requirements.txt
1010

11-
CMD ["python", "./examples/sampleapp.py"]
11+
CMD ["python", "./example/sampleapp.py"]

exporter/opentelemetry-exporter-prometheus-remote-write/example/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ data
1414
*Users do not need to install Python as the app will be run in the Docker Container*
1515

1616
## Instructions
17-
1. Run `docker-compose up -d` in the the `examples/` directory
17+
1. Run `docker-compose up -d` in the the `example/` directory
1818

1919
The `-d` flag causes all services to run in detached mode and frees up your
2020
terminal session. This also causes no logs to show up. Users can attach themselves to the service's logs manually using `docker logs ${CONTAINER_ID} --follow`
@@ -39,4 +39,4 @@ terminal session. This also causes no logs to show up. Users can attach themselv
3939
* Click the refresh button and data should show up on the graph
4040

4141
6. Shutdown the services when finished
42-
* Run `docker-compose down` in the examples directory
42+
* Run `docker-compose down` in the example directory

exporter/opentelemetry-exporter-prometheus-remote-write/example/docker-compose.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ services:
3030
sample_app:
3131
build:
3232
context: ../
33-
dockerfile: ./examples/Dockerfile
33+
dockerfile: ./example/Dockerfile

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

+1-1
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.38b0.dev"
15+
__version__ = "0.39b0.dev"

exporter/opentelemetry-exporter-richconsole/pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ classifiers = [
2727
dependencies = [
2828
"opentelemetry-api ~= 1.12",
2929
"opentelemetry-sdk ~= 1.12",
30-
"opentelemetry-semantic-conventions == 0.38b0.dev",
30+
"opentelemetry-semantic-conventions == 0.39b0.dev",
3131
"rich>=10.0.0",
3232
]
3333

exporter/opentelemetry-exporter-richconsole/src/opentelemetry/exporter/richconsole/version.py

+1-1
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.38b0.dev"
15+
__version__ = "0.39b0.dev"

instrumentation/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
| [opentelemetry-instrumentation-django](./opentelemetry-instrumentation-django) | django >= 1.10 | Yes
1717
| [opentelemetry-instrumentation-elasticsearch](./opentelemetry-instrumentation-elasticsearch) | elasticsearch >= 2.0 | No
1818
| [opentelemetry-instrumentation-falcon](./opentelemetry-instrumentation-falcon) | falcon >= 1.4.1, < 4.0.0 | Yes
19-
| [opentelemetry-instrumentation-fastapi](./opentelemetry-instrumentation-fastapi) | fastapi <= 0.90.1 | Yes
19+
| [opentelemetry-instrumentation-fastapi](./opentelemetry-instrumentation-fastapi) | fastapi ~= 0.58 | Yes
2020
| [opentelemetry-instrumentation-flask](./opentelemetry-instrumentation-flask) | flask >= 1.0, < 3.0 | Yes
2121
| [opentelemetry-instrumentation-grpc](./opentelemetry-instrumentation-grpc) | grpcio ~= 1.27 | No
2222
| [opentelemetry-instrumentation-httpx](./opentelemetry-instrumentation-httpx) | httpx >= 0.18.0 | No
@@ -34,7 +34,7 @@
3434
| [opentelemetry-instrumentation-remoulade](./opentelemetry-instrumentation-remoulade) | remoulade >= 0.50 | No
3535
| [opentelemetry-instrumentation-requests](./opentelemetry-instrumentation-requests) | requests ~= 2.0 | Yes
3636
| [opentelemetry-instrumentation-sklearn](./opentelemetry-instrumentation-sklearn) | scikit-learn ~= 0.24.0 | No
37-
| [opentelemetry-instrumentation-sqlalchemy](./opentelemetry-instrumentation-sqlalchemy) | sqlalchemy | No
37+
| [opentelemetry-instrumentation-sqlalchemy](./opentelemetry-instrumentation-sqlalchemy) | sqlalchemy | Yes
3838
| [opentelemetry-instrumentation-sqlite3](./opentelemetry-instrumentation-sqlite3) | sqlite3 | No
3939
| [opentelemetry-instrumentation-starlette](./opentelemetry-instrumentation-starlette) | starlette ~= 0.13.0 | Yes
4040
| [opentelemetry-instrumentation-system-metrics](./opentelemetry-instrumentation-system-metrics) | psutil >= 5 | No

instrumentation/opentelemetry-instrumentation-aio-pika/pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ instruments = [
3535
]
3636
test = [
3737
"opentelemetry-instrumentation-aio-pika[instruments]",
38-
"opentelemetry-test-utils == 0.38b0.dev",
38+
"opentelemetry-test-utils == 0.39b0.dev",
3939
"pytest",
4040
"wrapt >= 1.0.0, < 2.0.0",
4141
]

instrumentation/opentelemetry-instrumentation-aio-pika/src/opentelemetry/instrumentation/aio_pika/version.py

+1-1
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.38b0.dev"
15+
__version__ = "0.39b0.dev"

instrumentation/opentelemetry-instrumentation-aiohttp-client/pyproject.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ classifiers = [
2626
]
2727
dependencies = [
2828
"opentelemetry-api ~= 1.12",
29-
"opentelemetry-instrumentation == 0.38b0.dev",
30-
"opentelemetry-semantic-conventions == 0.38b0.dev",
31-
"opentelemetry-util-http == 0.38b0.dev",
29+
"opentelemetry-instrumentation == 0.39b0.dev",
30+
"opentelemetry-semantic-conventions == 0.39b0.dev",
31+
"opentelemetry-util-http == 0.39b0.dev",
3232
"wrapt >= 1.0.0, < 2.0.0",
3333
]
3434

instrumentation/opentelemetry-instrumentation-aiohttp-client/src/opentelemetry/instrumentation/aiohttp_client/version.py

+1-1
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.38b0.dev"
15+
__version__ = "0.39b0.dev"

instrumentation/opentelemetry-instrumentation-aiopg/pyproject.toml

+4-4
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ classifiers = [
2626
]
2727
dependencies = [
2828
"opentelemetry-api ~= 1.12",
29-
"opentelemetry-instrumentation == 0.38b0.dev",
30-
"opentelemetry-instrumentation-dbapi == 0.38b0.dev",
29+
"opentelemetry-instrumentation == 0.39b0.dev",
30+
"opentelemetry-instrumentation-dbapi == 0.39b0.dev",
3131
"wrapt >= 1.0.0, < 2.0.0",
3232
]
3333

@@ -37,8 +37,8 @@ instruments = [
3737
]
3838
test = [
3939
"opentelemetry-instrumentation-aiopg[instruments]",
40-
"opentelemetry-semantic-conventions == 0.38b0.dev",
41-
"opentelemetry-test-utils == 0.38b0.dev",
40+
"opentelemetry-semantic-conventions == 0.39b0.dev",
41+
"opentelemetry-test-utils == 0.39b0.dev",
4242
]
4343

4444
[project.entry-points.opentelemetry_instrumentor]

instrumentation/opentelemetry-instrumentation-aiopg/src/opentelemetry/instrumentation/aiopg/version.py

+1-1
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.38b0.dev"
15+
__version__ = "0.39b0.dev"

instrumentation/opentelemetry-instrumentation-asgi/pyproject.toml

+4-4
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ classifiers = [
2727
dependencies = [
2828
"asgiref ~= 3.0",
2929
"opentelemetry-api ~= 1.12",
30-
"opentelemetry-instrumentation == 0.38b0.dev",
31-
"opentelemetry-semantic-conventions == 0.38b0.dev",
32-
"opentelemetry-util-http == 0.38b0.dev",
30+
"opentelemetry-instrumentation == 0.39b0.dev",
31+
"opentelemetry-semantic-conventions == 0.39b0.dev",
32+
"opentelemetry-util-http == 0.39b0.dev",
3333
]
3434

3535
[project.optional-dependencies]
@@ -38,7 +38,7 @@ instruments = [
3838
]
3939
test = [
4040
"opentelemetry-instrumentation-asgi[instruments]",
41-
"opentelemetry-test-utils == 0.38b0.dev",
41+
"opentelemetry-test-utils == 0.39b0.dev",
4242
]
4343

4444
[project.urls]

instrumentation/opentelemetry-instrumentation-asgi/src/opentelemetry/instrumentation/asgi/version.py

+1-1
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.38b0.dev"
15+
__version__ = "0.39b0.dev"

instrumentation/opentelemetry-instrumentation-asyncpg/pyproject.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ classifiers = [
2626
]
2727
dependencies = [
2828
"opentelemetry-api ~= 1.12",
29-
"opentelemetry-instrumentation == 0.38b0.dev",
30-
"opentelemetry-semantic-conventions == 0.38b0.dev",
29+
"opentelemetry-instrumentation == 0.39b0.dev",
30+
"opentelemetry-semantic-conventions == 0.39b0.dev",
3131
]
3232

3333
[project.optional-dependencies]
@@ -36,7 +36,7 @@ instruments = [
3636
]
3737
test = [
3838
"opentelemetry-instrumentation-asyncpg[instruments]",
39-
"opentelemetry-test-utils == 0.38b0.dev",
39+
"opentelemetry-test-utils == 0.39b0.dev",
4040
]
4141

4242
[project.entry-points.opentelemetry_instrumentor]

instrumentation/opentelemetry-instrumentation-asyncpg/src/opentelemetry/instrumentation/asyncpg/version.py

+1-1
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.38b0.dev"
15+
__version__ = "0.39b0.dev"

instrumentation/opentelemetry-instrumentation-aws-lambda/pyproject.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@ classifiers = [
2222
"Programming Language :: Python :: 3.8",
2323
]
2424
dependencies = [
25-
"opentelemetry-instrumentation == 0.38b0.dev",
25+
"opentelemetry-instrumentation == 0.39b0.dev",
2626
"opentelemetry-propagator-aws-xray == 1.0.1",
27-
"opentelemetry-semantic-conventions == 0.38b0.dev",
27+
"opentelemetry-semantic-conventions == 0.39b0.dev",
2828
]
2929

3030
[project.optional-dependencies]
3131
instruments = []
3232
test = [
33-
"opentelemetry-test-utils == 0.38b0.dev",
33+
"opentelemetry-test-utils == 0.39b0.dev",
3434
]
3535

3636
[project.urls]

instrumentation/opentelemetry-instrumentation-aws-lambda/src/opentelemetry/instrumentation/aws_lambda/__init__.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@
2424
# Copy this snippet into an AWS Lambda function
2525
2626
import boto3
27-
from opentelemetry.instrumentation.botocore import AwsBotocoreInstrumentor
27+
from opentelemetry.instrumentation.botocore import BotocoreInstrumentor
2828
from opentelemetry.instrumentation.aws_lambda import AwsLambdaInstrumentor
2929
3030
# Enable instrumentation
31-
AwsBotocoreInstrumentor().instrument()
31+
BotocoreInstrumentor().instrument()
3232
AwsLambdaInstrumentor().instrument()
3333
3434
# Lambda function
@@ -342,7 +342,9 @@ def _instrumented_lambda_handler_call( # noqa pylint: disable=too-many-branches
342342
# If the request came from an API Gateway, extract http attributes from the event
343343
# https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/semantic_conventions/instrumentation/aws-lambda.md#api-gateway
344344
# https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/semantic_conventions/http.md#http-server-semantic-conventions
345-
if lambda_event and lambda_event.get("requestContext"):
345+
if isinstance(lambda_event, dict) and lambda_event.get(
346+
"requestContext"
347+
):
346348
span.set_attribute(SpanAttributes.FAAS_TRIGGER, "http")
347349

348350
if lambda_event.get("version") == "2.0":

instrumentation/opentelemetry-instrumentation-aws-lambda/src/opentelemetry/instrumentation/aws_lambda/version.py

+1-1
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.38b0.dev"
15+
__version__ = "0.39b0.dev"

instrumentation/opentelemetry-instrumentation-aws-lambda/tests/test_aws_lambda_instrumentation_manual.py

+9
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,15 @@ def test_api_gateway_http_api_proxy_event_sets_attributes(self):
399399
},
400400
)
401401

402+
def test_lambda_handles_list_event(self):
403+
AwsLambdaInstrumentor().instrument()
404+
405+
mock_execute_lambda([{"message": "test"}])
406+
407+
spans = self.memory_exporter.get_finished_spans()
408+
409+
assert spans
410+
402411
def test_uninstrument(self):
403412
AwsLambdaInstrumentor().instrument()
404413

0 commit comments

Comments
 (0)