in jbi/app.py [0:0]
def traces_sampler(sampling_context: dict[str, Any]) -> float:
"""Function to dynamically set Sentry sampling rates"""
request_path = sampling_context.get("asgi_scope", {}).get("path")
if request_path == "/__lbheartbeat__":
# Drop all __lbheartbeat__ requests
return 0
return settings.sentry_traces_sample_rate