Skip to content

Commit 5ef76cc

Browse files
committed
Setting sample rate to 1.0.
Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
1 parent 6f404fa commit 5ef76cc

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/logdetective_packit/main.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@
3636
http_bearer = HTTPBearer()
3737

3838
# Set the LD_PACKIT_INTERFACE_SENTRY_DSN env variable beforehand
39-
sentry_sdk.init(dsn=os.environ.get("LD_PACKIT_INTERFACE_SENTRY_DSN"))
39+
sentry_sdk.init(
40+
dsn=os.environ.get("LD_PACKIT_INTERFACE_SENTRY_DSN"), traces_sample_rate=1.0
41+
)
4042

4143
# Setup logging for fedora-messaging
4244
conf.setup_logging()

0 commit comments

Comments
 (0)