mirror of https://github.com/kortix-ai/suna.git
16 lines
273 B
Python
16 lines
273 B
Python
|
import sentry_sdk
|
||
|
import os
|
||
|
|
||
|
sentry_dsn = os.getenv("SENTRY_DSN", None)
|
||
|
if sentry_dsn:
|
||
|
sentry_sdk.init(
|
||
|
dsn=sentry_dsn,
|
||
|
traces_sample_rate=0.1,
|
||
|
send_default_pii=True,
|
||
|
_experiments={
|
||
|
"enable_logs": True,
|
||
|
},
|
||
|
)
|
||
|
|
||
|
sentry = sentry_sdk
|