-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Open
Description
Now we merged getsentry/sentry-python#4770 in the Python SDK, code like the snippet below can be simplified. The SDK now automatically forks the relevant scopes when a function is submitted to the executor.
sentry/src/sentry/utils/snuba.py
Lines 1179 to 1195 in dab07bb
with ThreadPoolExecutor( | |
thread_name_prefix=__name__, | |
max_workers=10, | |
) as query_thread_pool: | |
query_results = list( | |
query_thread_pool.map( | |
_snuba_query, | |
[ | |
( | |
sentry_sdk.get_isolation_scope(), | |
sentry_sdk.get_current_scope(), | |
snuba_request, | |
) | |
for snuba_request in snuba_requests_list | |
], | |
) | |
) |
Metadata
Metadata
Assignees
Labels
No labels