Skip to content

Commit 7a2d6cc

Browse files
olethanhPsycojoker
authored andcommittedOct 23, 2024
Problem: Sentry reporting didn't have release information
Solution : Add the release number to sentry init according to the Sentry documentation https://docs.sentry.io/platforms/python/configuration/releases/
1 parent 123a4d8 commit 7a2d6cc

File tree

1 file changed

+2
-1
lines changed
  • src/aleph/vm/orchestrator

1 file changed

+2
-1
lines changed
 

‎src/aleph/vm/orchestrator/cli.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from aleph.vm.conf import ALLOW_DEVELOPER_SSH_KEYS, make_db_url, settings
2121
from aleph.vm.models import VmExecution
2222
from aleph.vm.pool import VmPool
23-
from aleph.vm.version import get_version_from_apt, get_version_from_git
23+
from aleph.vm.version import __version__, get_version_from_apt, get_version_from_git
2424

2525
from . import metrics, supervisor
2626
from .pubsub import PubSub
@@ -325,6 +325,7 @@ def main():
325325
# of transactions for performance monitoring.
326326
# We recommend adjusting this value in production.
327327
traces_sample_rate=1.0,
328+
release=__version__,
328329
)
329330
sentry_sdk.set_context(
330331
"version",

0 commit comments

Comments
 (0)