Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SDK 2.0 #2670

Closed
wants to merge 52 commits into from
Closed

SDK 2.0 #2670

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
89af1e2
Add a migration guide (#2595)
sentrivana Dec 13, 2023
b83e454
Sync with `master` (#2596)
sentrivana Jan 9, 2024
8dddcf1
Rename background worker thread (#2594)
sentrivana Jan 15, 2024
9703685
Drop Python 2.7, 3.5 from CI (#2640)
sentrivana Jan 16, 2024
ec5b85a
Remove Python 2 unicode literals, `fmt` (#2642)
sentrivana Jan 16, 2024
410dba1
Remove # coding: utf-8 (#2641)
sentrivana Jan 16, 2024
2d354c7
Remove compatibility utils for old Python (#2645)
sentrivana Jan 16, 2024
999c238
Drop `exec` for Python 2 incompatible code (#2650)
sentrivana Jan 18, 2024
db2bd4b
Remove `object` as superclass (#2646)
sentrivana Jan 18, 2024
bb1c3ff
Remove functools compat (#2648)
sentrivana Jan 18, 2024
6ec6973
Remove obsolete `__future__` imports (#2647)
sentrivana Jan 18, 2024
8eaaece
Drop old Python versions from setup.py (#2659)
sentrivana Jan 19, 2024
ce549ca
Remove sorting where order is now stable (#2658)
sentrivana Jan 19, 2024
4673548
Consolidate `tracing_utils` (#2655)
sentrivana Jan 22, 2024
9561fff
Remove Python<=3.5 compatibility code from tests (#2649)
sentrivana Jan 22, 2024
e2dd1f6
Small (compatibility) fixes (#2663)
sentrivana Jan 23, 2024
5ed5781
Sync `sentry-sdk-2.0` with `master` (#2669)
sentrivana Jan 23, 2024
ef3f691
Merge master into sentry-sdk-2.0
sentrivana Jan 24, 2024
d600037
Merge branch 'master' into sentry-sdk-2.0
sentrivana Jan 26, 2024
2452113
Auto-enable more integrations (#2671)
sentrivana Jan 29, 2024
cb2c70f
Remove deprecated code (#2666)
sentrivana Jan 29, 2024
ddb4a29
ref(api): Remove store endpoint (#2656)
szokeasaurusrex Jan 29, 2024
ec18401
Merge branch 'master' into sentry-sdk-2.0
sentrivana Jan 30, 2024
ee66058
Update MIGRATION_GUIDE.md
antonpirker Feb 6, 2024
18ae737
Merge branch 'master' into sentry-sdk-2.0
sentrivana Feb 6, 2024
98499e4
Update MIGRATION_GUIDE.md
antonpirker Feb 6, 2024
9835963
Typo
antonpirker Feb 6, 2024
2f95d03
Merge branch 'master' into sentry-sdk-2.0
sentrivana Feb 6, 2024
6cd6e77
Sync with master
sentrivana Feb 7, 2024
04bcf91
ref(transport): Remove compatibility import (#2698)
sentrivana Feb 12, 2024
cd8c5e0
Remove `user.segment` (#2726)
sentrivana Feb 13, 2024
d30d52d
Merge branch 'master' into sentry-sdk-2.0
sentrivana Feb 14, 2024
1f33e1f
Merge branch 'master' into sentry-sdk-2.0
sentrivana Feb 14, 2024
6d77ea7
Deprecate profiler `_experiments` options (#2737)
sentrivana Feb 14, 2024
80ec86d
fix(metrics): Fix typo (#2735)
sentrivana Feb 14, 2024
adb9d3e
ref(docs): Tweak migration guide
sentrivana Feb 15, 2024
fa24e49
ref: Use new-style super() (#2744)
sentrivana Feb 16, 2024
e7161eb
Merge branch 'master' into sentry-sdk-2.0
sentrivana Feb 16, 2024
93f89e0
Added last_event_id() to the stuff that has been removed.
antonpirker Feb 19, 2024
7b062ee
Merge branch 'master' into sentry-sdk-2.0
antonpirker Feb 19, 2024
cb052dd
Merge branch 'master' into sentry-sdk-2.0
sentrivana Feb 19, 2024
f97c949
Merge branch 'master' into sentry-sdk-2.0
antonpirker Feb 21, 2024
fc38343
Merge branch 'sentry-sdk-2.0' of github.com:getsentry/sentry-python i…
antonpirker Feb 21, 2024
8aa9599
Remove PY2
sentrivana Feb 21, 2024
888ee4c
docs: Update readme, migration guide (#2754)
sentrivana Feb 22, 2024
656ac9d
Scope refactoring (merge Hubs and Scopes) (#2610)
antonpirker Feb 26, 2024
eca23b8
ref(api): Abstract base classes (#2667)
szokeasaurusrex Feb 26, 2024
ad4ff19
Updated migration guide
antonpirker Feb 26, 2024
c2825d5
Merge branch 'sentry-sdk-2.0' of github.com:getsentry/sentry-python i…
antonpirker Feb 26, 2024
cdf4f90
Added note to README
antonpirker Feb 26, 2024
0594cfa
channel link
antonpirker Feb 26, 2024
fa5f50b
Temporarily disable tests for alpha release
antonpirker Feb 26, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test-integrations-aws-lambda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ jobs:
test-aws_lambda-pinned:
name: AWS Lambda (pinned)
timeout-minutes: 30
needs: check-permissions
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
Expand All @@ -64,6 +63,7 @@ jobs:
# ubuntu-20.04 is the last version that supported python3.6
# see https://github.com/actions/setup-python/issues/544#issuecomment-1332535877
os: [ubuntu-20.04]
needs: check-permissions
steps:
- uses: actions/[email protected]
with:
Expand Down
43 changes: 1 addition & 42 deletions .github/workflows/test-integrations-cloud-computing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,46 +114,9 @@ jobs:
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage.xml
test-cloud_computing-py27:
name: Cloud Computing (py27)
timeout-minutes: 30
runs-on: ubuntu-20.04
container: python:2.7
steps:
- uses: actions/[email protected]
- name: Setup Test Env
run: |
pip install coverage "tox>=3,<4"
- name: Erase coverage
run: |
coverage erase
- name: Test boto3 py27
run: |
set -x # print commands that are executed
./scripts/runtox.sh --exclude-latest "py2.7-boto3" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
- name: Test chalice py27
run: |
set -x # print commands that are executed
./scripts/runtox.sh --exclude-latest "py2.7-chalice" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
- name: Test cloud_resource_context py27
run: |
set -x # print commands that are executed
./scripts/runtox.sh --exclude-latest "py2.7-cloud_resource_context" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
- name: Test gcp py27
run: |
set -x # print commands that are executed
./scripts/runtox.sh --exclude-latest "py2.7-gcp" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
- name: Generate coverage XML
run: |
coverage combine .coverage*
coverage xml -i
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage.xml
check_required_tests:
name: All Cloud Computing tests passed
needs: [test-cloud_computing-pinned, test-cloud_computing-py27]
needs: test-cloud_computing-pinned
# Always run this, even if a dependent job failed
if: always()
runs-on: ubuntu-20.04
Expand All @@ -162,7 +125,3 @@ jobs:
if: contains(needs.test-cloud_computing-pinned.result, 'failure') || contains(needs.test-cloud_computing-pinned.result, 'skipped')
run: |
echo "One of the dependent jobs has failed. You may need to re-run it." && exit 1
- name: Check for 2.7 failures
if: contains(needs.test-cloud_computing-py27.result, 'failure') || contains(needs.test-cloud_computing-py27.result, 'skipped')
run: |
echo "One of the dependent jobs has failed. You may need to re-run it." && exit 1
33 changes: 2 additions & 31 deletions .github/workflows/test-integrations-common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.5","3.6","3.7","3.8","3.9","3.10","3.11","3.12"]
python-version: ["3.6","3.7","3.8","3.9","3.10","3.11","3.12"]
# python3.6 reached EOL and is no longer being supported on
# new versions of hosted runners on Github Actions
# ubuntu-20.04 is the last version that supported python3.6
Expand Down Expand Up @@ -54,34 +54,9 @@ jobs:
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage.xml
test-common-py27:
name: Common (py27)
timeout-minutes: 30
runs-on: ubuntu-20.04
container: python:2.7
steps:
- uses: actions/[email protected]
- name: Setup Test Env
run: |
pip install coverage "tox>=3,<4"
- name: Erase coverage
run: |
coverage erase
- name: Test common py27
run: |
set -x # print commands that are executed
./scripts/runtox.sh --exclude-latest "py2.7-common" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
- name: Generate coverage XML
run: |
coverage combine .coverage*
coverage xml -i
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage.xml
check_required_tests:
name: All Common tests passed
needs: [test-common-pinned, test-common-py27]
needs: test-common-pinned
# Always run this, even if a dependent job failed
if: always()
runs-on: ubuntu-20.04
Expand All @@ -90,7 +65,3 @@ jobs:
if: contains(needs.test-common-pinned.result, 'failure') || contains(needs.test-common-pinned.result, 'skipped')
run: |
echo "One of the dependent jobs has failed. You may need to re-run it." && exit 1
- name: Check for 2.7 failures
if: contains(needs.test-common-py27.result, 'failure') || contains(needs.test-common-py27.result, 'skipped')
run: |
echo "One of the dependent jobs has failed. You may need to re-run it." && exit 1
51 changes: 3 additions & 48 deletions .github/workflows/test-integrations-data-processing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.5","3.7","3.8","3.11","3.12"]
python-version: ["3.6","3.7","3.8","3.11","3.12"]
# python3.6 reached EOL and is no longer being supported on
# new versions of hosted runners on Github Actions
# ubuntu-20.04 is the last version that supported python3.6
Expand Down Expand Up @@ -77,7 +77,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.5","3.6","3.7","3.8","3.9","3.10","3.11","3.12"]
python-version: ["3.6","3.7","3.8","3.9","3.10","3.11","3.12"]
# python3.6 reached EOL and is no longer being supported on
# new versions of hosted runners on Github Actions
# ubuntu-20.04 is the last version that supported python3.6
Expand Down Expand Up @@ -122,50 +122,9 @@ jobs:
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage.xml
test-data_processing-py27:
name: Data Processing (py27)
timeout-minutes: 30
runs-on: ubuntu-20.04
container: python:2.7
steps:
- uses: actions/[email protected]
- name: Setup Test Env
run: |
pip install coverage "tox>=3,<4"
- name: Erase coverage
run: |
coverage erase
- name: Test arq py27
run: |
set -x # print commands that are executed
./scripts/runtox.sh --exclude-latest "py2.7-arq" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
- name: Test beam py27
run: |
set -x # print commands that are executed
./scripts/runtox.sh --exclude-latest "py2.7-beam" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
- name: Test celery py27
run: |
set -x # print commands that are executed
./scripts/runtox.sh --exclude-latest "py2.7-celery" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
- name: Test huey py27
run: |
set -x # print commands that are executed
./scripts/runtox.sh --exclude-latest "py2.7-huey" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
- name: Test rq py27
run: |
set -x # print commands that are executed
./scripts/runtox.sh --exclude-latest "py2.7-rq" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
- name: Generate coverage XML
run: |
coverage combine .coverage*
coverage xml -i
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage.xml
check_required_tests:
name: All Data Processing tests passed
needs: [test-data_processing-pinned, test-data_processing-py27]
needs: test-data_processing-pinned
# Always run this, even if a dependent job failed
if: always()
runs-on: ubuntu-20.04
Expand All @@ -174,7 +133,3 @@ jobs:
if: contains(needs.test-data_processing-pinned.result, 'failure') || contains(needs.test-data_processing-pinned.result, 'skipped')
run: |
echo "One of the dependent jobs has failed. You may need to re-run it." && exit 1
- name: Check for 2.7 failures
if: contains(needs.test-data_processing-py27.result, 'failure') || contains(needs.test-data_processing-py27.result, 'skipped')
run: |
echo "One of the dependent jobs has failed. You may need to re-run it." && exit 1
73 changes: 1 addition & 72 deletions .github/workflows/test-integrations-databases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -174,76 +174,9 @@ jobs:
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage.xml
test-databases-py27:
name: Databases (py27)
timeout-minutes: 30
runs-on: ubuntu-20.04
container: python:2.7
services:
postgres:
image: postgres
env:
POSTGRES_PASSWORD: sentry
# Set health checks to wait until postgres has started
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
# Maps tcp port 5432 on service container to the host
ports:
- 5432:5432
env:
SENTRY_PYTHON_TEST_POSTGRES_USER: postgres
SENTRY_PYTHON_TEST_POSTGRES_PASSWORD: sentry
SENTRY_PYTHON_TEST_POSTGRES_NAME: ci_test
SENTRY_PYTHON_TEST_POSTGRES_HOST: postgres
steps:
- uses: actions/[email protected]
- uses: getsentry/action-clickhouse-in-ci@v1
- name: Setup Test Env
run: |
pip install coverage "tox>=3,<4"
psql postgresql://postgres:sentry@postgres:5432 -c "create database ${SENTRY_PYTHON_TEST_POSTGRES_NAME};" || true
psql postgresql://postgres:sentry@postgres:5432 -c "grant all privileges on database ${SENTRY_PYTHON_TEST_POSTGRES_NAME} to ${SENTRY_PYTHON_TEST_POSTGRES_USER};" || true
- name: Erase coverage
run: |
coverage erase
- name: Test asyncpg py27
run: |
set -x # print commands that are executed
./scripts/runtox.sh --exclude-latest "py2.7-asyncpg" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
- name: Test clickhouse_driver py27
run: |
set -x # print commands that are executed
./scripts/runtox.sh --exclude-latest "py2.7-clickhouse_driver" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
- name: Test pymongo py27
run: |
set -x # print commands that are executed
./scripts/runtox.sh --exclude-latest "py2.7-pymongo" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
- name: Test redis py27
run: |
set -x # print commands that are executed
./scripts/runtox.sh --exclude-latest "py2.7-redis" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
- name: Test rediscluster py27
run: |
set -x # print commands that are executed
./scripts/runtox.sh --exclude-latest "py2.7-rediscluster" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
- name: Test sqlalchemy py27
run: |
set -x # print commands that are executed
./scripts/runtox.sh --exclude-latest "py2.7-sqlalchemy" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
- name: Generate coverage XML
run: |
coverage combine .coverage*
coverage xml -i
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage.xml
check_required_tests:
name: All Databases tests passed
needs: [test-databases-pinned, test-databases-py27]
needs: test-databases-pinned
# Always run this, even if a dependent job failed
if: always()
runs-on: ubuntu-20.04
Expand All @@ -252,7 +185,3 @@ jobs:
if: contains(needs.test-databases-pinned.result, 'failure') || contains(needs.test-databases-pinned.result, 'skipped')
run: |
echo "One of the dependent jobs has failed. You may need to re-run it." && exit 1
- name: Check for 2.7 failures
if: contains(needs.test-databases-py27.result, 'failure') || contains(needs.test-databases-py27.result, 'skipped')
run: |
echo "One of the dependent jobs has failed. You may need to re-run it." && exit 1
4 changes: 2 additions & 2 deletions .github/workflows/test-integrations-miscellaneous.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.5","3.8","3.11","3.12"]
python-version: ["3.6","3.8","3.11","3.12"]
# python3.6 reached EOL and is no longer being supported on
# new versions of hosted runners on Github Actions
# ubuntu-20.04 is the last version that supported python3.6
Expand Down Expand Up @@ -73,7 +73,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.5","3.6","3.7","3.8","3.9","3.11","3.12"]
python-version: ["3.6","3.7","3.8","3.9","3.11","3.12"]
# python3.6 reached EOL and is no longer being supported on
# new versions of hosted runners on Github Actions
# ubuntu-20.04 is the last version that supported python3.6
Expand Down
43 changes: 1 addition & 42 deletions .github/workflows/test-integrations-networking.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,46 +114,9 @@ jobs:
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage.xml
test-networking-py27:
name: Networking (py27)
timeout-minutes: 30
runs-on: ubuntu-20.04
container: python:2.7
steps:
- uses: actions/[email protected]
- name: Setup Test Env
run: |
pip install coverage "tox>=3,<4"
- name: Erase coverage
run: |
coverage erase
- name: Test gevent py27
run: |
set -x # print commands that are executed
./scripts/runtox.sh --exclude-latest "py2.7-gevent" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
- name: Test grpc py27
run: |
set -x # print commands that are executed
./scripts/runtox.sh --exclude-latest "py2.7-grpc" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
- name: Test httpx py27
run: |
set -x # print commands that are executed
./scripts/runtox.sh --exclude-latest "py2.7-httpx" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
- name: Test requests py27
run: |
set -x # print commands that are executed
./scripts/runtox.sh --exclude-latest "py2.7-requests" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
- name: Generate coverage XML
run: |
coverage combine .coverage*
coverage xml -i
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage.xml
check_required_tests:
name: All Networking tests passed
needs: [test-networking-pinned, test-networking-py27]
needs: test-networking-pinned
# Always run this, even if a dependent job failed
if: always()
runs-on: ubuntu-20.04
Expand All @@ -162,7 +125,3 @@ jobs:
if: contains(needs.test-networking-pinned.result, 'failure') || contains(needs.test-networking-pinned.result, 'skipped')
run: |
echo "One of the dependent jobs has failed. You may need to re-run it." && exit 1
- name: Check for 2.7 failures
if: contains(needs.test-networking-py27.result, 'failure') || contains(needs.test-networking-py27.result, 'skipped')
run: |
echo "One of the dependent jobs has failed. You may need to re-run it." && exit 1
Loading
Loading