Skip to content

armgit / plane

Public Imported from GitHub
0

πŸ”₯πŸ”₯πŸ”₯ Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage.

dev: fix sentry profiling rate (#3785)

Nikhild6a32ef75d12
diff --git a/apiserver/plane/settings/common.py b/apiserver/plane/settings/common.py
index f032092504..5c8947e73b 100644
--- a/apiserver/plane/settings/common.py
+++ b/apiserver/plane/settings/common.py
@@ -1,4 +1,5 @@
"""Global Settings"""
+
# Python imports
import os
import ssl
@@ -307,7 +308,9 @@ if bool(os.environ.get("SENTRY_DSN", False)) and os.environ.get(
traces_sample_rate=1,
send_default_pii=True,
environment=os.environ.get("SENTRY_ENVIRONMENT", "development"),
- profiles_sample_rate=1.0,
+ profiles_sample_rate=float(
+ os.environ.get("SENTRY_PROFILE_SAMPLE_RATE", 0.5)
+ ),
)