From 4a95b721a2d6cfe635408e1cddff04b7a425302b Mon Sep 17 00:00:00 2001 From: "David H. Irving" Date: Thu, 5 Dec 2024 15:07:03 -0700 Subject: [PATCH] DO NOT MERGE: enable sentry profiling --- 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()