Skip to content

Commit afe6491

Browse files
committed
Merge branch 'master' into potel-base
2 parents 88e6716 + f6db981 commit afe6491

File tree

87 files changed

+3810
-1745
lines changed

Some content is hidden

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

87 files changed

+3810
-1745
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44

55
Thank you for contributing to `sentry-python`! Please add tests to validate your changes, and lint your code using `tox -e linters`.
66

7-
Running the test suite on your PR might require maintainer approval. The AWS Lambda tests additionally require a maintainer to add a special label, and they will fail until this label is added.
7+
Running the test suite on your PR might require maintainer approval.

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
steps:
2121
- name: Get auth token
2222
id: token
23-
uses: actions/create-github-app-token@0d564482f06ca65fa9e77e2510873638c82206f2 # v1.11.5
23+
uses: actions/create-github-app-token@21cfef2b496dd8ef5b904c159339626a10ad380e # v1.11.6
2424
with:
2525
app-id: ${{ vars.SENTRY_RELEASE_BOT_CLIENT_ID }}
2626
private-key: ${{ secrets.SENTRY_RELEASE_BOT_PRIVATE_KEY }}

.github/workflows/scripts/trigger_tests_on_label.py

Lines changed: 0 additions & 72 deletions
This file was deleted.

.github/workflows/test-integrations-ai.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ jobs:
7070
coverage xml
7171
- name: Upload coverage to Codecov
7272
if: ${{ !cancelled() }}
73-
uses: codecov/codecov-action@v5.3.1
73+
uses: codecov/codecov-action@v5.4.0
7474
with:
7575
token: ${{ secrets.CODECOV_TOKEN }}
7676
files: coverage.xml
@@ -132,7 +132,7 @@ jobs:
132132
coverage xml
133133
- name: Upload coverage to Codecov
134134
if: ${{ !cancelled() }}
135-
uses: codecov/codecov-action@v5.3.1
135+
uses: codecov/codecov-action@v5.4.0
136136
with:
137137
token: ${{ secrets.CODECOV_TOKEN }}
138138
files: coverage.xml

.github/workflows/test-integrations-cloud.yml

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ jobs:
3131
matrix:
3232
python-version: ["3.8","3.11","3.12","3.13"]
3333
os: [ubuntu-22.04]
34+
services:
35+
docker:
36+
image: docker:dind # Required for Docker network management
37+
options: --privileged # Required for Docker-in-Docker operations
3438
steps:
3539
- uses: actions/[email protected]
3640
- uses: actions/setup-python@v5
@@ -43,6 +47,10 @@ jobs:
4347
- name: Erase coverage
4448
run: |
4549
coverage erase
50+
- name: Test aws_lambda latest
51+
run: |
52+
set -x # print commands that are executed
53+
./scripts/runtox.sh "py${{ matrix.python-version }}-aws_lambda-latest"
4654
- name: Test boto3 latest
4755
run: |
4856
set -x # print commands that are executed
@@ -66,7 +74,7 @@ jobs:
6674
coverage xml
6775
- name: Upload coverage to Codecov
6876
if: ${{ !cancelled() }}
69-
uses: codecov/codecov-action@v5.3.1
77+
uses: codecov/codecov-action@v5.4.0
7078
with:
7179
token: ${{ secrets.CODECOV_TOKEN }}
7280
files: coverage.xml
@@ -87,8 +95,12 @@ jobs:
8795
strategy:
8896
fail-fast: false
8997
matrix:
90-
python-version: ["3.7","3.9","3.11","3.12","3.13"]
98+
python-version: ["3.7","3.8","3.9","3.11","3.12","3.13"]
9199
os: [ubuntu-22.04]
100+
services:
101+
docker:
102+
image: docker:dind # Required for Docker network management
103+
options: --privileged # Required for Docker-in-Docker operations
92104
steps:
93105
- uses: actions/[email protected]
94106
- uses: actions/setup-python@v5
@@ -101,6 +113,10 @@ jobs:
101113
- name: Erase coverage
102114
run: |
103115
coverage erase
116+
- name: Test aws_lambda pinned
117+
run: |
118+
set -x # print commands that are executed
119+
./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-aws_lambda"
104120
- name: Test boto3 pinned
105121
run: |
106122
set -x # print commands that are executed
@@ -124,7 +140,7 @@ jobs:
124140
coverage xml
125141
- name: Upload coverage to Codecov
126142
if: ${{ !cancelled() }}
127-
uses: codecov/codecov-action@v5.3.1
143+
uses: codecov/codecov-action@v5.4.0
128144
with:
129145
token: ${{ secrets.CODECOV_TOKEN }}
130146
files: coverage.xml

.github/workflows/test-integrations-common.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
coverage xml
5555
- name: Upload coverage to Codecov
5656
if: ${{ !cancelled() }}
57-
uses: codecov/codecov-action@v5.3.1
57+
uses: codecov/codecov-action@v5.4.0
5858
with:
5959
token: ${{ secrets.CODECOV_TOKEN }}
6060
files: coverage.xml

.github/workflows/test-integrations-dbs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ jobs:
9494
coverage xml
9595
- name: Upload coverage to Codecov
9696
if: ${{ !cancelled() }}
97-
uses: codecov/codecov-action@v5.3.1
97+
uses: codecov/codecov-action@v5.4.0
9898
with:
9999
token: ${{ secrets.CODECOV_TOKEN }}
100100
files: coverage.xml
@@ -180,7 +180,7 @@ jobs:
180180
coverage xml
181181
- name: Upload coverage to Codecov
182182
if: ${{ !cancelled() }}
183-
uses: codecov/codecov-action@v5.3.1
183+
uses: codecov/codecov-action@v5.4.0
184184
with:
185185
token: ${{ secrets.CODECOV_TOKEN }}
186186
files: coverage.xml

.github/workflows/test-integrations-flags.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666
coverage xml
6767
- name: Upload coverage to Codecov
6868
if: ${{ !cancelled() }}
69-
uses: codecov/codecov-action@v5.3.1
69+
uses: codecov/codecov-action@v5.4.0
7070
with:
7171
token: ${{ secrets.CODECOV_TOKEN }}
7272
files: coverage.xml

.github/workflows/test-integrations-gevent.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
coverage xml
5555
- name: Upload coverage to Codecov
5656
if: ${{ !cancelled() }}
57-
uses: codecov/codecov-action@v5.3.1
57+
uses: codecov/codecov-action@v5.4.0
5858
with:
5959
token: ${{ secrets.CODECOV_TOKEN }}
6060
files: coverage.xml

.github/workflows/test-integrations-graphql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666
coverage xml
6767
- name: Upload coverage to Codecov
6868
if: ${{ !cancelled() }}
69-
uses: codecov/codecov-action@v5.3.1
69+
uses: codecov/codecov-action@v5.4.0
7070
with:
7171
token: ${{ secrets.CODECOV_TOKEN }}
7272
files: coverage.xml

.github/workflows/test-integrations-misc.yml

Lines changed: 1 addition & 1 deletion
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/codecov-action@v5.3.1
77+
uses: codecov/codecov-action@v5.4.0
7878
with:
7979
token: ${{ secrets.CODECOV_TOKEN }}
8080
files: coverage.xml

.github/workflows/test-integrations-network.yml

Lines changed: 2 additions & 2 deletions
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/codecov-action@v5.3.1
65+
uses: codecov/codecov-action@v5.4.0
6666
with:
6767
token: ${{ secrets.CODECOV_TOKEN }}
6868
files: coverage.xml
@@ -116,7 +116,7 @@ jobs:
116116
coverage xml
117117
- name: Upload coverage to Codecov
118118
if: ${{ !cancelled() }}
119-
uses: codecov/codecov-action@v5.3.1
119+
uses: codecov/codecov-action@v5.4.0
120120
with:
121121
token: ${{ secrets.CODECOV_TOKEN }}
122122
files: coverage.xml

.github/workflows/test-integrations-tasks.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ jobs:
8484
coverage xml
8585
- name: Upload coverage to Codecov
8686
if: ${{ !cancelled() }}
87-
uses: codecov/codecov-action@v5.3.1
87+
uses: codecov/codecov-action@v5.4.0
8888
with:
8989
token: ${{ secrets.CODECOV_TOKEN }}
9090
files: coverage.xml
@@ -160,7 +160,7 @@ jobs:
160160
coverage xml
161161
- name: Upload coverage to Codecov
162162
if: ${{ !cancelled() }}
163-
uses: codecov/codecov-action@v5.3.1
163+
uses: codecov/codecov-action@v5.4.0
164164
with:
165165
token: ${{ secrets.CODECOV_TOKEN }}
166166
files: coverage.xml

.github/workflows/test-integrations-web-1.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ jobs:
8484
coverage xml
8585
- name: Upload coverage to Codecov
8686
if: ${{ !cancelled() }}
87-
uses: codecov/codecov-action@v5.3.1
87+
uses: codecov/codecov-action@v5.4.0
8888
with:
8989
token: ${{ secrets.CODECOV_TOKEN }}
9090
files: coverage.xml
@@ -160,7 +160,7 @@ jobs:
160160
coverage xml
161161
- name: Upload coverage to Codecov
162162
if: ${{ !cancelled() }}
163-
uses: codecov/codecov-action@v5.3.1
163+
uses: codecov/codecov-action@v5.4.0
164164
with:
165165
token: ${{ secrets.CODECOV_TOKEN }}
166166
files: coverage.xml

.github/workflows/test-integrations-web-2.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ jobs:
9090
coverage xml
9191
- name: Upload coverage to Codecov
9292
if: ${{ !cancelled() }}
93-
uses: codecov/codecov-action@v5.3.1
93+
uses: codecov/codecov-action@v5.4.0
9494
with:
9595
token: ${{ secrets.CODECOV_TOKEN }}
9696
files: coverage.xml
@@ -172,7 +172,7 @@ jobs:
172172
coverage xml
173173
- name: Upload coverage to Codecov
174174
if: ${{ !cancelled() }}
175-
uses: codecov/codecov-action@v5.3.1
175+
uses: codecov/codecov-action@v5.4.0
176176
with:
177177
token: ${{ secrets.CODECOV_TOKEN }}
178178
files: coverage.xml

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,6 @@ relay
2929
pip-wheel-metadata
3030
.mypy_cache
3131
.vscode/
32+
33+
# for running AWS Lambda tests using AWS SAM
34+
sam.template.yaml

CHANGELOG.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,49 @@
11
# Changelog
22

3+
## 2.23.1
4+
5+
### Various fixes & improvements
6+
7+
- Fix import problem in release 2.23.0 (#4140) by @antonpirker
8+
9+
## 2.23.0
10+
11+
### Various fixes & improvements
12+
13+
- Feat(profiling): Add new functions to start/stop continuous profiler (#4056) by @Zylphrex
14+
- Feat(profiling): Export start/stop profile session (#4079) by @Zylphrex
15+
- Feat(tracing): Backfill missing `sample_rand` on `PropagationContext` (#4038) by @szokeasaurusrex
16+
- Feat(logs): Add alpha version of Sentry logs (#4126) by @colin-sentry
17+
- Security(gha): fix potential for shell injection (#4099) by @mdtro
18+
- Docs: Add `init()` parameters to ApiDocs. (#4100) by @antonpirker
19+
- Docs: Document that caller must check `mutable` (#4010) by @szokeasaurusrex
20+
- Fix(Anthropic): Add partial json support to streams (#3674)
21+
- Fix(ASGI): Fix KeyError if transaction does not exist (#4095) by @kevinji
22+
- Fix(asyncio): Improve asyncio integration error handling. (#4129) by @antonpirker
23+
- Fix(AWS Lambda): Fix capturing errors during AWS Lambda INIT phase (#3943)
24+
- Fix(Bottle): Prevent internal error on 404 (#4131) by @sentrivana
25+
- Fix(CI): Fix API doc failure in CI (#4075) by @sentrivana
26+
- Fix(ClickHouse) ClickHouse in test suite (#4087) by @antonpirker
27+
- Fix(cloudresourcecontext): Added timeout to HTTP requests in CloudResourceContextIntegration (#4120) by @antonpirker
28+
- Fix(crons): Fixed bug when `cron_jobs` is set to `None` in arq integration (#4115) by @antonpirker
29+
- Fix(debug): Take into account parent handlers for debug logger (#4133) by @sentrivana
30+
- Fix(FastAPI/Starlette): Fix middleware with positional arguments. (#4118) by @antonpirker
31+
- Fix(featureflags): add LRU update/dedupe test coverage (#4082)
32+
- Fix(logging): Coerce None values into strings in logentry params. (#4121) by @antonpirker
33+
- Fix(pyspark): Grab `attemptId` more defensively (#4130) by @sentrivana
34+
- Fix(Quart): Support `quart_flask_patch` (#4132) by @sentrivana
35+
- Fix(tests): A way to locally run AWS Lambda functions (#4128) by @antonpirker
36+
- Fix(tests): Add concurrency testcase for arq (#4125) by @sentrivana
37+
- Fix(tests): Add fail_on_changes to toxgen by @sentrivana
38+
- Fix(tests): Run AWS Lambda tests locally (#3988) by @antonpirker
39+
- Fix(tests): Test relevant prereleases and allow to ignore releases
40+
- Fix(tracing): Move `TRANSACTION_SOURCE_*` constants to `Enum` (#3889) by @mgaligniana
41+
- Fix(typing): Add more typing info to Scope.update_from_kwargs's "contexts" (#4080)
42+
- Fix(typing): Set correct type for `set_context` everywhere (#4123) by @sentrivana
43+
- Chore(tests): Regenerate tox.ini (#4108) by @sentrivana
44+
- Build(deps): bump actions/create-github-app-token from 1.11.5 to 1.11.6 (#4113) by @dependabot
45+
- Build(deps): bump codecov/codecov-action from 5.3.1 to 5.4.0 (#4112) by @dependabot
46+
347
## 2.22.0
448

549
### Various fixes & improvements

0 commit comments

Comments
 (0)