Skip to content

Commit 081df7e

Browse files
committed
wip
1 parent 57bf42a commit 081df7e

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

sentry_sdk/integrations/strawberry.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,20 @@ def _sentry_patched_execute_sync(*args, **kwargs):
322322
strawberry_schema.execute_sync = _sentry_patched_execute_sync
323323

324324

325+
def _patch_execute_new():
326+
old_execute_sync = strawberry_schema.Schema.execute_sync
327+
old_execute_async = strawberry_schema.Schema.execute
328+
329+
def _sentry_patched_execute_sync(self, query, variable_values, context_value, root_value, operation_name, *args, **kwargs):
330+
# type: (strawberry_schema.Schema, Optional[str], Optional[dict[str, Any]], Optional[Any], Optional[Any], Optional[str]) -> ExecutionResult
331+
pass
332+
333+
def _sentry_patched_execute_async(...):
334+
pass
335+
336+
strawberry_schema.Schema.execute_sync = _sentry_patched_execute_sync
337+
strawberry_schema.Schema.execute = _sentry_patched_execute_async
338+
325339
def _patch_views():
326340
# type: () -> None
327341
old_async_view_handle_errors = async_base_view.AsyncBaseHTTPView._handle_errors

0 commit comments

Comments
 (0)