Using Sentry with Google Cloud Functions makes debugging as painless as possible, so you can keep everything up and running.
Add the Sentry SDK to your requirements.txt
:
pip install sentry-sdk
Then use the GCP Functions integration for the Python SDK like this:
import sentry_sdk from sentry_sdk.integrations.gcp import GcpIntegration sentry_sdk.init( dsn="https://<key>@sentry.io/<project>", integrations=[GcpIntegration()], traces_sample_rate=1.0, # adjust the sample rate in production as needed ) def http_function_entrypoint(request): # ...
Check our documentation for the latest instructions.
See all platformsView stack traces on issues, user-agent information, and all the metadata around an issue for all the context needed to resolve the issue.
Trace those ten-second page loads to poor-performing API calls and slow database queries. The event detail waterfall visually highlights what calls are giving your customers a poor experience.
See what happened leading up to the issue. Get function execution details including function metadata, execution time, Amazon Resource Name, and function identity.