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

Lines changed: 3 additions & 0 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 34 additions & 0 deletions
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

Lines changed: 7 additions & 7 deletions
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

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

eachdist.ini

Lines changed: 2 additions & 2 deletions
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 2 additions & 2 deletions
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

0 commit comments

Comments
 (0)