Skip to content

Commit

Permalink
include AwsLambdaIntegration (#8)
Browse files Browse the repository at this point in the history
* include AwsLambdaIntegration

* with comments

* fix-lint

Co-authored-by: Glen <[email protected]>
  • Loading branch information
matin and Gleekzone authored Aug 5, 2020
1 parent 95afdc3 commit b0510d8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions sentry_chalice/sentry_chalice.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
from sentry_sdk.hub import Hub, _should_send_default_pii
from sentry_sdk.integrations import Integration
from sentry_sdk.integrations._wsgi_common import _filter_headers
from sentry_sdk.integrations.aws_lambda import AwsLambdaIntegration
from sentry_sdk.utils import (
AnnotatedValue,
capture_internal_exceptions,
Expand Down Expand Up @@ -79,7 +80,10 @@ class ChaliceIntegration(Integration):

@staticmethod
def setup_once():
# for @app.route()
Chalice._get_view_function_response = _get_view_function_response
# for everything else (like events)
AwsLambdaIntegration.setup_once()


def _make_request_event_processor(current_request, lambda_context):
Expand Down
2 changes: 1 addition & 1 deletion sentry_chalice/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.1.1'
__version__ = '0.2.0'

0 comments on commit b0510d8

Please sign in to comment.