Skip to content

Support Python SDK 3.0.0 #92011

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

Open
wants to merge 94 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
94 commits
Select commit Hold shift + click to select a range
f5010ee
Update requirements
antonpirker May 20, 2025
109670e
Remove propagate_hub because it is not needed because its the default…
antonpirker May 21, 2025
d1c81fb
Removed metrics_noop because there are no metrics anymore and thus no…
antonpirker May 21, 2025
4cbadbc
Merge branch 'master' into antonpirker/code-changes-for-sdk-3.0.0
antonpirker May 21, 2025
2a204f4
Make tests run locally until pytest-sentry is 3.0 compatible
antonpirker May 21, 2025
f3d56a1
Replace .set_data with .set_attribute
antonpirker May 21, 2025
fcc75ac
changed add_attachment
antonpirker May 21, 2025
b75ec43
Changed start_transaction to start_span and custom_sampling_context t…
antonpirker May 21, 2025
420b0e8
Changed continue_trace to use context manager
antonpirker May 21, 2025
4896797
Removed set_measurements helper function because it is not used in co…
antonpirker May 21, 2025
47401ba
oops
antonpirker May 21, 2025
ea9f446
marked places where dict-attributes are
antonpirker May 21, 2025
58062aa
Replaced with
antonpirker May 21, 2025
9ac4468
one more comment
antonpirker May 21, 2025
20c7098
more comments
antonpirker May 21, 2025
ee2cd8e
Merge branch 'master' into antonpirker/code-changes-for-sdk-3.0.0
antonpirker May 21, 2025
5d23052
Merge branch 'master' into antonpirker/code-changes-for-sdk-3.0.0
antonpirker May 21, 2025
e8212a0
Merge branch 'master' into antonpirker/code-changes-for-sdk-3.0.0
antonpirker May 23, 2025
22bfae5
Merge branch 'master' into antonpirker/code-changes-for-sdk-3.0.0
antonpirker May 23, 2025
d72b7c3
bump pytest-sentry
antonpirker May 23, 2025
cbc0ab5
:snowflake: re-freeze requirements
getsantry[bot] May 23, 2025
6a67a42
trigger ci
antonpirker May 23, 2025
6be5d4f
update pytest-sentry
antonpirker May 23, 2025
fbb5794
Replaced .transaction with .root_span
antonpirker May 23, 2025
262d7ec
Always use top level api to get scope
antonpirker May 23, 2025
bb55c2c
use sample_rate in attributes instead of custom_sampling_context
antonpirker May 26, 2025
767ff19
trigger ci
antonpirker May 26, 2025
d0713ae
Replaced .containing_transaction with .root_span
antonpirker May 26, 2025
539ba80
Removed unused option
antonpirker May 26, 2025
77db522
set num_of_spanes in event.data not event.measurement
antonpirker May 26, 2025
8ac865c
fixed linting
antonpirker May 26, 2025
c9aed13
Ignore measurements mypy check (because measuerements have already be…
antonpirker May 26, 2025
2f87727
replaced with
antonpirker May 26, 2025
eda30c8
formatting
antonpirker May 26, 2025
8d34740
Merge branch 'master' into antonpirker/code-changes-for-sdk-3.0.0
antonpirker May 27, 2025
2fc5724
Merge branch 'master' into antonpirker/code-changes-for-sdk-3.0.0
antonpirker May 27, 2025
9bdc5c7
Merge branch 'master' into antonpirker/code-changes-for-sdk-3.0.0
antonpirker May 28, 2025
811295a
does this work?
antonpirker May 28, 2025
3196756
restart ci
antonpirker May 28, 2025
6fe96cd
Updated assert
antonpirker May 28, 2025
cba2d08
Merge branch 'master' into antonpirker/code-changes-for-sdk-3.0.0
antonpirker Jun 2, 2025
b257ce3
trigger ci
antonpirker Jun 2, 2025
3d22514
Renamed set_span_data to set_span_attribute to reflect new api
antonpirker Jun 2, 2025
6fb01f0
Reverted attribute name change. this is safer
antonpirker Jun 2, 2025
ca31b3e
testing something
antonpirker Jun 2, 2025
b07b506
testing something
antonpirker Jun 2, 2025
7645de6
test
antonpirker Jun 2, 2025
19a8e15
trigger ci
antonpirker Jun 2, 2025
585ce09
Merge branch 'master' into antonpirker/code-changes-for-sdk-3.0.0
antonpirker Jun 3, 2025
6140c91
cleanup
antonpirker Jun 3, 2025
d74d1da
test: Remove redundant assertions
szokeasaurusrex Jun 4, 2025
021988d
Merge branch 'master' into antonpirker/code-changes-for-sdk-3.0.0
szokeasaurusrex Jun 4, 2025
3e9cf51
Merge branch 'szokeasaurusrex/remove-redundant-assertion' into antonp…
szokeasaurusrex Jun 4, 2025
791fa5d
Merge branch 'master' into antonpirker/code-changes-for-sdk-3.0.0
antonpirker Jun 5, 2025
a6aaf63
Those set_attribute calls are fine. See https://github.com/getsentry/…
antonpirker Jun 5, 2025
e484188
ref: Use `set_client` to change DSN
szokeasaurusrex Jun 5, 2025
9188a3d
ref: Rename `set_span_data` to `set_span_attribute`
szokeasaurusrex Jun 5, 2025
2fe7a0c
Merge branch 'szokeasaurusrex/set_span_attribute' into antonpirker/co…
szokeasaurusrex Jun 5, 2025
ebec05e
Merge branch 'master' into antonpirker/code-changes-for-sdk-3.0.0
antonpirker Jun 6, 2025
f23fe52
Merge branch 'antonpirker/code-changes-for-sdk-3.0.0' of https://gith…
antonpirker Jun 6, 2025
b28a307
Merge branch 'master' into antonpirker/code-changes-for-sdk-3.0.0
antonpirker Jun 6, 2025
0870caa
ref: Remove `propagate_hub` to `ThreadingIntegration`
szokeasaurusrex Jun 6, 2025
102cb52
ref(sdk): Use top-level `get_current_scope`
szokeasaurusrex Jun 6, 2025
4c154c8
ref(sdk): Migrate to `get_isolation_scope`
szokeasaurusrex Jun 6, 2025
534c9e2
ref(sdk): Migrate to `sentry_sdk.get_global_scope`
szokeasaurusrex Jun 6, 2025
a71823e
:hammer_and_wrench: apply pre-commit fixes
getsantry[bot] Jun 6, 2025
3f1501e
Merge branch 'szokeasaurusrex/get_global_scope' into antonpirker/code…
szokeasaurusrex Jun 6, 2025
6fd66b1
Merge branch 'master' into antonpirker/code-changes-for-sdk-3.0.0
antonpirker Jun 11, 2025
7ef89f3
Merge branch 'antonpirker/code-changes-for-sdk-3.0.0' of https://gith…
antonpirker Jun 11, 2025
5d1e332
Removed debug code
antonpirker Jun 11, 2025
f1fc98b
Merge branch 'master' into antonpirker/code-changes-for-sdk-3.0.0
antonpirker Jun 11, 2025
443f074
test: Add test for custom sample rates (#93011)
szokeasaurusrex Jun 11, 2025
83eaa41
Merge branch 'master' into antonpirker/code-changes-for-sdk-3.0.0
antonpirker Jun 11, 2025
3f14f20
Merge branch 'master' into antonpirker/code-changes-for-sdk-3.0.0
antonpirker Jun 12, 2025
d494df2
set_data -> set_attribute
antonpirker Jun 12, 2025
3b850fd
trigger ci
antonpirker Jun 12, 2025
1e2e2ef
Merge branch 'master' into antonpirker/code-changes-for-sdk-3.0.0
antonpirker Jun 16, 2025
2193459
new pytest-sentry
antonpirker Jun 16, 2025
f641055
update
antonpirker Jun 16, 2025
0247622
client is not an argument of Scope constructor anymore
antonpirker Jun 16, 2025
e0c3e66
Merge branch 'master' into antonpirker/code-changes-for-sdk-3.0.0
antonpirker Jun 17, 2025
0522d95
Merge branch 'master' into antonpirker/code-changes-for-sdk-3.0.0
antonpirker Jun 17, 2025
25712df
Migrate sampling_context to use SDK 3.0 attributes (#94022)
sentrivana Jun 23, 2025
8858bc7
Merge branch 'master' into antonpirker/code-changes-for-sdk-3.0.0
antonpirker Jun 25, 2025
7b1245f
Merge branch 'master' into antonpirker/code-changes-for-sdk-3.0.0
antonpirker Jun 25, 2025
c1f35b4
naming
antonpirker Jun 26, 2025
b64c9ca
test parametrization
antonpirker Jun 26, 2025
f084069
Merge branch 'master' into antonpirker/code-changes-for-sdk-3.0.0
antonpirker Jun 26, 2025
aee5352
Merge branch 'master' into antonpirker/code-changes-for-sdk-3.0.0
antonpirker Jun 27, 2025
3674af7
Removed new tests to test something
antonpirker Jun 27, 2025
6c2a99f
small fix
antonpirker Jun 27, 2025
5411f36
Revert "Removed new tests to test something"
antonpirker Jun 27, 2025
2804ca9
better checks
antonpirker Jun 27, 2025
cc789a0
Merge branch 'master' into antonpirker/code-changes-for-sdk-3.0.0
antonpirker Jun 27, 2025
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
Prev Previous commit
Next Next commit
one more comment
  • Loading branch information
antonpirker committed May 21, 2025
commit 9ac4468beac69f96a693ff43f835c9ad1b5f81e9
1 change: 1 addition & 0 deletions src/sentry/taskworker/workerchild.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,7 @@ def _execute_activation(task_func: Task[Any, Any], activation: TaskActivation) -
origin="taskworker",
) as root_span,
):
# TODO-anton: split dict into multiple attributes
root_span.set_attribute(
"taskworker-task", {"args": args, "kwargs": kwargs, "id": activation.id}
)
Expand Down
Loading