From 24fc0945cde344a3c02c417213cee6c80f26aa3d Mon Sep 17 00:00:00 2001 From: "David H. Irving" Date: Fri, 6 Dec 2024 13:38:00 -0700 Subject: [PATCH] Reapply "DO NOT MERGE: enable sentry profiling" This reverts commit eabd6ffd1e3e8c72620790b1208fdc21757c4764. --- python/lsst/daf/butler/remote_butler/server/_telemetry.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/python/lsst/daf/butler/remote_butler/server/_telemetry.py b/python/lsst/daf/butler/remote_butler/server/_telemetry.py index a1ae16fc3b..b50e90c3b2 100644 --- a/python/lsst/daf/butler/remote_butler/server/_telemetry.py +++ b/python/lsst/daf/butler/remote_butler/server/_telemetry.py @@ -65,7 +65,9 @@ def enable_telemetry() -> None: # Configuration will be pulled from SENTRY_* environment variables # (see https://docs.sentry.io/platforms/python/configuration/options/). # If SENTRY_DSN is not present, telemetry is disabled. - sentry_sdk.init(enable_tracing=True, traces_sampler=_decide_whether_to_sample_trace) + sentry_sdk.init( + enable_tracing=True, traces_sampler=_decide_whether_to_sample_trace, profiles_sample_rate=1.0 + ) global _telemetry_context _telemetry_context = SentryTelemetryContext()