Created
April 25, 2019 20:23
-
-
Save jneves/523d952b4d9441c9f6db6e712d933466 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""Usage: in your zappa_settings.json file, add the following (assuming this is handler.py and is next to zappa_setttings.json): | |
"lambda_handler": "handler.lambda_handler" | |
""" | |
from zappa.handler import LambdaHandler | |
import epsagon | |
epsagon.init( | |
token='my-secret-token', | |
app_name='my-app-name', | |
metadata_only=False, # Optional, send more trace data | |
) | |
@epsagon.lambda_wrapper | |
def lambda_handler(event, context): # pragma: no cover | |
return LambdaHandler.lambda_handler(event, context) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment