目的
appliationのmonitoringやerror監視のためにsentryを使う
Ref
使い方
pythonの場合
test.py
import sentry_sdk
sentry_sdk.init(
"xxxx", ## ここに各自の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
)
# hoge
division_by_zero = 1 / 0
結果
所感
とても簡単。
