Sentry can pull errors directly from the server and will be more useful than just tracking logs on cloudwatch or locally. We need to add the SDK as below:
import sentry_sdk
sentry_sdk.init(
"<sentry api url>",
# Set traces_sample_rate to 1.0 to capture 100%
# of transactions for performance monitoring.
# We recommend adjusting this value in production.
traces_sample_rate=1.0
)
Sentry can pull errors directly from the server and will be more useful than just tracking logs on cloudwatch or locally. We need to add the SDK as below: