0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Sentryを使ってみる

Posted at

目的

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

結果

sentryの画面にexpectionが出た
image.png

所感

とても簡単。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?