Skip to content

Commit

Permalink
feat: Add release version to Sentry SDK initialization for better tra…
Browse files Browse the repository at this point in the history
…cking
  • Loading branch information
onuratakan committed Dec 30, 2024
1 parent 8db2c7a commit a0f5d95
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gpt_computer_assistant/classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
from rich.style import Style

from .remote import Remote_Client
from . import __version__

print("I am on sentry sdk")
import sentry_sdk
Expand All @@ -18,6 +19,7 @@
# Set traces_sample_rate to 1.0 to capture 100%
# of transactions for tracing.
traces_sample_rate=1.0,
release=f"gcs@{__version__}",
)
from .utils.db import load_user_id
sentry_sdk.set_user({"id": load_user_id()})
Expand Down

0 comments on commit a0f5d95

Please sign in to comment.