Skip to content

Commit

Permalink
DO NOT MERGE: enable sentry profiling
Browse files Browse the repository at this point in the history
  • Loading branch information
dhirving committed Dec 5, 2024
1 parent 761aad6 commit 4a95b72
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python/lsst/daf/butler/remote_butler/server/_telemetry.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(

Check warning on line 68 in python/lsst/daf/butler/remote_butler/server/_telemetry.py

View check run for this annotation

Codecov / codecov/patch

python/lsst/daf/butler/remote_butler/server/_telemetry.py#L68

Added line #L68 was not covered by tests
enable_tracing=True, traces_sampler=_decide_whether_to_sample_trace, profiles_sample_rate=1.0
)

global _telemetry_context
_telemetry_context = SentryTelemetryContext()

Check warning on line 73 in python/lsst/daf/butler/remote_butler/server/_telemetry.py

View check run for this annotation

Codecov / codecov/patch

python/lsst/daf/butler/remote_butler/server/_telemetry.py#L73

Added line #L73 was not covered by tests
Expand Down

0 comments on commit 4a95b72

Please sign in to comment.