diff --git a/app/controllers/api/v2/graphql_controller.rb b/app/controllers/api/v2/graphql_controller.rb index 11a5ce654..1f3de6458 100644 --- a/app/controllers/api/v2/graphql_controller.rb +++ b/app/controllers/api/v2/graphql_controller.rb @@ -82,7 +82,11 @@ class API::V2::GraphqlController < API::V2::BaseController def handle_error_in_production(exception) id = SecureRandom.uuid - Sentry.capture_exception(exception, extra: { exception_id: id }) + Sentry.capture_exception(exception, extra: { + exception_id: id, + query: params[:query], + variables: params[:variables].to_json + }) render json: { errors: [