Skip to content

Commit 13d4b72

Browse files
authored
Merge branch 'master' into master
2 parents 70e7caa + fe4b88b commit 13d4b72

Some content is hidden

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

48 files changed

+1207
-268
lines changed

Diff for: .github/workflows/release-comment-issues.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: "Automation: Notify issues for release"
2+
on:
3+
release:
4+
types:
5+
- published
6+
workflow_dispatch:
7+
inputs:
8+
version:
9+
description: Which version to notify issues for
10+
required: false
11+
12+
# This workflow is triggered when a release is published
13+
jobs:
14+
release-comment-issues:
15+
runs-on: ubuntu-20.04
16+
name: Notify issues
17+
steps:
18+
- name: Get version
19+
id: get_version
20+
run: echo "version=${{ github.event.inputs.version || github.event.release.tag_name }}" >> $GITHUB_OUTPUT
21+
22+
- name: Comment on linked issues that are mentioned in release
23+
if: |
24+
steps.get_version.outputs.version != ''
25+
&& !contains(steps.get_version.outputs.version, 'a')
26+
&& !contains(steps.get_version.outputs.version, 'b')
27+
&& !contains(steps.get_version.outputs.version, 'rc')
28+
uses: getsentry/release-comment-issues-gh-action@v1
29+
with:
30+
github_token: ${{ secrets.GITHUB_TOKEN }}
31+
version: ${{ steps.get_version.outputs.version }}

Diff for: .github/workflows/release.yml

+8-2
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,20 @@ jobs:
1818
runs-on: ubuntu-latest
1919
name: "Release a new version"
2020
steps:
21+
- name: Get auth token
22+
id: token
23+
uses: actions/create-github-app-token@5d869da34e18e7287c1daad50e0b8ea0f506ce69 # v1.11.0
24+
with:
25+
app-id: ${{ vars.SENTRY_RELEASE_BOT_CLIENT_ID }}
26+
private-key: ${{ secrets.SENTRY_RELEASE_BOT_PRIVATE_KEY }}
2127
- uses: actions/[email protected]
2228
with:
23-
token: ${{ secrets.GH_RELEASE_PAT }}
29+
token: ${{ steps.token.outputs.token }}
2430
fetch-depth: 0
2531
- name: Prepare release
2632
uses: getsentry/action-prepare-release@v1
2733
env:
28-
GITHUB_TOKEN: ${{ secrets.GH_RELEASE_PAT }}
34+
GITHUB_TOKEN: ${{ steps.token.outputs.token }}
2935
with:
3036
version: ${{ github.event.inputs.version }}
3137
force: ${{ github.event.inputs.force }}

Diff for: .github/workflows/test-integrations-ai.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ jobs:
7878
coverage xml
7979
- name: Upload coverage to Codecov
8080
if: ${{ !cancelled() }}
81-
uses: codecov/[email protected].2
81+
uses: codecov/[email protected].7
8282
with:
8383
token: ${{ secrets.CODECOV_TOKEN }}
8484
files: coverage.xml
@@ -99,7 +99,7 @@ jobs:
9999
strategy:
100100
fail-fast: false
101101
matrix:
102-
python-version: ["3.7","3.9","3.11","3.12","3.13"]
102+
python-version: ["3.8","3.9","3.11","3.12","3.13"]
103103
# python3.6 reached EOL and is no longer being supported on
104104
# new versions of hosted runners on Github Actions
105105
# ubuntu-20.04 is the last version that supported python3.6
@@ -150,7 +150,7 @@ jobs:
150150
coverage xml
151151
- name: Upload coverage to Codecov
152152
if: ${{ !cancelled() }}
153-
uses: codecov/[email protected].2
153+
uses: codecov/[email protected].7
154154
with:
155155
token: ${{ secrets.CODECOV_TOKEN }}
156156
files: coverage.xml

Diff for: .github/workflows/test-integrations-aws.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ jobs:
9797
coverage xml
9898
- name: Upload coverage to Codecov
9999
if: ${{ !cancelled() }}
100-
uses: codecov/[email protected].2
100+
uses: codecov/[email protected].7
101101
with:
102102
token: ${{ secrets.CODECOV_TOKEN }}
103103
files: coverage.xml

Diff for: .github/workflows/test-integrations-cloud.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ jobs:
7474
coverage xml
7575
- name: Upload coverage to Codecov
7676
if: ${{ !cancelled() }}
77-
uses: codecov/[email protected].2
77+
uses: codecov/[email protected].7
7878
with:
7979
token: ${{ secrets.CODECOV_TOKEN }}
8080
files: coverage.xml
@@ -142,7 +142,7 @@ jobs:
142142
coverage xml
143143
- name: Upload coverage to Codecov
144144
if: ${{ !cancelled() }}
145-
uses: codecov/[email protected].2
145+
uses: codecov/[email protected].7
146146
with:
147147
token: ${{ secrets.CODECOV_TOKEN }}
148148
files: coverage.xml

Diff for: .github/workflows/test-integrations-common.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
coverage xml
6363
- name: Upload coverage to Codecov
6464
if: ${{ !cancelled() }}
65-
uses: codecov/[email protected].2
65+
uses: codecov/[email protected].7
6666
with:
6767
token: ${{ secrets.CODECOV_TOKEN }}
6868
files: coverage.xml

Diff for: .github/workflows/test-integrations-dbs.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
with:
5858
python-version: ${{ matrix.python-version }}
5959
allow-prereleases: true
60-
- uses: getsentry/action-clickhouse-in-ci@v1
60+
- uses: getsentry/action-clickhouse-in-ci@v1.1
6161
- name: Setup Test Env
6262
run: |
6363
pip install "coverage[toml]" tox
@@ -101,7 +101,7 @@ jobs:
101101
coverage xml
102102
- name: Upload coverage to Codecov
103103
if: ${{ !cancelled() }}
104-
uses: codecov/[email protected].2
104+
uses: codecov/[email protected].7
105105
with:
106106
token: ${{ secrets.CODECOV_TOKEN }}
107107
files: coverage.xml
@@ -152,7 +152,7 @@ jobs:
152152
with:
153153
python-version: ${{ matrix.python-version }}
154154
allow-prereleases: true
155-
- uses: getsentry/action-clickhouse-in-ci@v1
155+
- uses: getsentry/action-clickhouse-in-ci@v1.1
156156
- name: Setup Test Env
157157
run: |
158158
pip install "coverage[toml]" tox
@@ -196,7 +196,7 @@ jobs:
196196
coverage xml
197197
- name: Upload coverage to Codecov
198198
if: ${{ !cancelled() }}
199-
uses: codecov/[email protected].2
199+
uses: codecov/[email protected].7
200200
with:
201201
token: ${{ secrets.CODECOV_TOKEN }}
202202
files: coverage.xml

Diff for: .github/workflows/test-integrations-graphql.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ jobs:
7474
coverage xml
7575
- name: Upload coverage to Codecov
7676
if: ${{ !cancelled() }}
77-
uses: codecov/[email protected].2
77+
uses: codecov/[email protected].7
7878
with:
7979
token: ${{ secrets.CODECOV_TOKEN }}
8080
files: coverage.xml
@@ -142,7 +142,7 @@ jobs:
142142
coverage xml
143143
- name: Upload coverage to Codecov
144144
if: ${{ !cancelled() }}
145-
uses: codecov/[email protected].2
145+
uses: codecov/[email protected].7
146146
with:
147147
token: ${{ secrets.CODECOV_TOKEN }}
148148
files: coverage.xml

Diff for: .github/workflows/test-integrations-misc.yml

+11-3
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
strategy:
2828
fail-fast: false
2929
matrix:
30-
python-version: ["3.6","3.8","3.12","3.13"]
30+
python-version: ["3.6","3.7","3.8","3.12","3.13"]
3131
# python3.6 reached EOL and is no longer being supported on
3232
# new versions of hosted runners on Github Actions
3333
# ubuntu-20.04 is the last version that supported python3.6
@@ -73,6 +73,10 @@ jobs:
7373
run: |
7474
set -x # print commands that are executed
7575
./scripts/runtox.sh "py${{ matrix.python-version }}-trytond-latest"
76+
- name: Test typer latest
77+
run: |
78+
set -x # print commands that are executed
79+
./scripts/runtox.sh "py${{ matrix.python-version }}-typer-latest"
7680
- name: Generate coverage XML (Python 3.6)
7781
if: ${{ !cancelled() && matrix.python-version == '3.6' }}
7882
run: |
@@ -86,7 +90,7 @@ jobs:
8690
coverage xml
8791
- name: Upload coverage to Codecov
8892
if: ${{ !cancelled() }}
89-
uses: codecov/[email protected].2
93+
uses: codecov/[email protected].7
9094
with:
9195
token: ${{ secrets.CODECOV_TOKEN }}
9296
files: coverage.xml
@@ -153,6 +157,10 @@ jobs:
153157
run: |
154158
set -x # print commands that are executed
155159
./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-trytond"
160+
- name: Test typer pinned
161+
run: |
162+
set -x # print commands that are executed
163+
./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-typer"
156164
- name: Generate coverage XML (Python 3.6)
157165
if: ${{ !cancelled() && matrix.python-version == '3.6' }}
158166
run: |
@@ -166,7 +174,7 @@ jobs:
166174
coverage xml
167175
- name: Upload coverage to Codecov
168176
if: ${{ !cancelled() }}
169-
uses: codecov/[email protected].2
177+
uses: codecov/[email protected].7
170178
with:
171179
token: ${{ secrets.CODECOV_TOKEN }}
172180
files: coverage.xml

Diff for: .github/workflows/test-integrations-network.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ jobs:
7474
coverage xml
7575
- name: Upload coverage to Codecov
7676
if: ${{ !cancelled() }}
77-
uses: codecov/[email protected].2
77+
uses: codecov/[email protected].7
7878
with:
7979
token: ${{ secrets.CODECOV_TOKEN }}
8080
files: coverage.xml
@@ -142,7 +142,7 @@ jobs:
142142
coverage xml
143143
- name: Upload coverage to Codecov
144144
if: ${{ !cancelled() }}
145-
uses: codecov/[email protected].2
145+
uses: codecov/[email protected].7
146146
with:
147147
token: ${{ secrets.CODECOV_TOKEN }}
148148
files: coverage.xml

Diff for: .github/workflows/test-integrations-tasks.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ jobs:
9292
coverage xml
9393
- name: Upload coverage to Codecov
9494
if: ${{ !cancelled() }}
95-
uses: codecov/[email protected].2
95+
uses: codecov/[email protected].7
9696
with:
9797
token: ${{ secrets.CODECOV_TOKEN }}
9898
files: coverage.xml
@@ -178,7 +178,7 @@ jobs:
178178
coverage xml
179179
- name: Upload coverage to Codecov
180180
if: ${{ !cancelled() }}
181-
uses: codecov/[email protected].2
181+
uses: codecov/[email protected].7
182182
with:
183183
token: ${{ secrets.CODECOV_TOKEN }}
184184
files: coverage.xml

Diff for: .github/workflows/test-integrations-web-1.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ jobs:
9292
coverage xml
9393
- name: Upload coverage to Codecov
9494
if: ${{ !cancelled() }}
95-
uses: codecov/[email protected].2
95+
uses: codecov/[email protected].7
9696
with:
9797
token: ${{ secrets.CODECOV_TOKEN }}
9898
files: coverage.xml
@@ -178,7 +178,7 @@ jobs:
178178
coverage xml
179179
- name: Upload coverage to Codecov
180180
if: ${{ !cancelled() }}
181-
uses: codecov/[email protected].2
181+
uses: codecov/[email protected].7
182182
with:
183183
token: ${{ secrets.CODECOV_TOKEN }}
184184
files: coverage.xml

Diff for: .github/workflows/test-integrations-web-2.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ jobs:
9898
coverage xml
9999
- name: Upload coverage to Codecov
100100
if: ${{ !cancelled() }}
101-
uses: codecov/[email protected].2
101+
uses: codecov/[email protected].7
102102
with:
103103
token: ${{ secrets.CODECOV_TOKEN }}
104104
files: coverage.xml
@@ -190,7 +190,7 @@ jobs:
190190
coverage xml
191191
- name: Upload coverage to Codecov
192192
if: ${{ !cancelled() }}
193-
uses: codecov/[email protected].2
193+
uses: codecov/[email protected].7
194194
with:
195195
token: ${{ secrets.CODECOV_TOKEN }}
196196
files: coverage.xml

Diff for: CHANGELOG.md

+51
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,56 @@
11
# Changelog
22

3+
## 2.19.2
4+
5+
### Various fixes & improvements
6+
7+
- Deepcopy and ensure get_all function always terminates (#3861) by @cmanallen
8+
- Cleanup chalice test environment (#3858) by @antonpirker
9+
10+
## 2.19.1
11+
12+
### Various fixes & improvements
13+
14+
- Fix errors when instrumenting Django cache (#3855) by @BYK
15+
- Copy `scope.client` reference as well (#3857) by @sl0thentr0py
16+
- Don't give up on Spotlight on 3 errors (#3856) by @BYK
17+
- Add missing stack frames (#3673) by @antonpirker
18+
- Fix wrong metadata type in async gRPC interceptor (#3205) by @fdellekart
19+
- Rename launch darkly hook to match JS SDK (#3743) by @aliu39
20+
- Script for checking if our instrumented libs are Python 3.13 compatible (#3425) by @antonpirker
21+
- Improve Ray tests (#3846) by @antonpirker
22+
- Test with Celery `5.5.0rc3` (#3842) by @sentrivana
23+
- Fix asyncio testing setup (#3832) by @sl0thentr0py
24+
- Bump `codecov/codecov-action` from `5.0.2` to `5.0.7` (#3821) by @dependabot
25+
- Fix CI (#3834) by @sentrivana
26+
- Use new ClickHouse GH action (#3826) by @antonpirker
27+
28+
## 2.19.0
29+
30+
### Various fixes & improvements
31+
32+
- New: introduce `rust_tracing` integration. See https://docs.sentry.io/platforms/python/integrations/rust_tracing/ (#3717) by @matt-codecov
33+
- Auto enable Litestar integration (#3540) by @provinzkraut
34+
- Deprecate `sentry_sdk.init` context manager (#3729) by @szokeasaurusrex
35+
- feat(spotlight): Send PII to Spotlight when no DSN is set (#3804) by @BYK
36+
- feat(spotlight): Add info logs when Sentry is enabled (#3735) by @BYK
37+
- feat(spotlight): Inject Spotlight button on Django (#3751) by @BYK
38+
- feat(spotlight): Auto enable cache_spans for Spotlight on DEBUG (#3791) by @BYK
39+
- fix(logging): Handle parameter `stack_info` for the `LoggingIntegration` (#3745) by @gmcrocetti
40+
- fix(pure-eval): Make sentry-sdk[pure-eval] installable with pip==24.0 (#3757) by @sentrivana
41+
- fix(rust_tracing): include_tracing_fields arg to control unvetted data in rust_tracing integration (#3780) by @matt-codecov
42+
- fix(aws) Fix aws lambda tests (by reducing event size) (#3770) by @antonpirker
43+
- fix(arq): fix integration with Worker settings as a dict (#3742) by @saber-solooki
44+
- fix(httpx): Prevent Sentry baggage duplication (#3728) by @szokeasaurusrex
45+
- fix(falcon): Don't exhaust request body stream (#3768) by @szokeasaurusrex
46+
- fix(integrations): Check `retries_left` before capturing exception (#3803) by @malkovro
47+
- fix(openai): Use name instead of description (#3807) by @sourceful-rob
48+
- test(gcp): Only run GCP tests when they should (#3721) by @szokeasaurusrex
49+
- chore: Shorten CI workflow names (#3805) by @sentrivana
50+
- chore: Test with pyspark prerelease (#3760) by @sentrivana
51+
- build(deps): bump codecov/codecov-action from 4.6.0 to 5.0.2 (#3792) by @dependabot
52+
- build(deps): bump actions/checkout from 4.2.1 to 4.2.2 (#3691) by @dependabot
53+
354
## 2.18.0
455

556
### Various fixes & improvements

Diff for: docs/conf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
copyright = "2019-{}, Sentry Team and Contributors".format(datetime.now().year)
3232
author = "Sentry Team and Contributors"
3333

34-
release = "2.18.0"
34+
release = "2.19.2"
3535
version = ".".join(release.split(".")[:2]) # The short X.Y version.
3636

3737

Diff for: pytest.ini

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[pytest]
22
addopts = -vvv -rfEs -s --durations=5 --cov=./sentry_sdk --cov-branch --cov-report= --tb=short --junitxml=.junitxml
33
asyncio_mode = strict
4+
asyncio_default_fixture_loop_scope = function
45
markers =
56
tests_internal_exceptions: Handle internal exceptions just as the SDK does, to test it. (Otherwise internal exceptions are recorded and reraised.)
67

Diff for: requirements-linting.txt

+1
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,4 @@ pre-commit # local linting
1717
httpcore
1818
openfeature-sdk
1919
launchdarkly-server-sdk
20+
typer

0 commit comments

Comments
 (0)