Skip to content

Commit

Permalink
Fix: 開発環境では Sentry を無効化する
Browse files Browse the repository at this point in the history
  • Loading branch information
tsukumijima committed Jan 14, 2025
1 parent 4eee875 commit 1c60d0b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions run.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,13 +349,13 @@ def main() -> None:
if args.output_log_utf8:
set_output_log_utf8()

# Sentry によるエラートラッキングを開始
# Sentry によるエラートラッキングを開始 (production 環境のみ有効)
# ref: https://docs.sentry.io/platforms/python/integrations/fastapi/
if not args.disable_sentry:
if not args.disable_sentry and __version__ != "latest":
sentry_sdk.init(
dsn="https://ebdf5cc288b3ab31a262186329ff3a95@o4508551725383680.ingest.us.sentry.io/4508555159470080",
release=f"AivisSpeech-Engine@{__version__}",
environment="development" if __version__ == "latest" else "production",
environment="production",
# Set traces_sample_rate to 1.0 to capture 100%
# of transactions for tracing.
traces_sample_rate=1.0,
Expand Down

0 comments on commit 1c60d0b

Please sign in to comment.