Spaces:
Build error
Build error
add logger script
Browse files- scripts/logger.py +11 -0
scripts/logger.py
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import sentry_sdk
|
2 |
+
from . import env_loader
|
3 |
+
|
4 |
+
sentry_sdk.init(
|
5 |
+
dsn=env_loader.envs.get("SENTRY_URL"),
|
6 |
+
|
7 |
+
# Set traces_sample_rate to 1.0 to capture 100%
|
8 |
+
# of transactions for performance monitoring.
|
9 |
+
# We recommend adjusting this value in production.
|
10 |
+
traces_sample_rate=1.0
|
11 |
+
)
|