From 188eff3376c29753724bf12d61b2f15e8491c5c6 Mon Sep 17 00:00:00 2001 From: doctorpangloss <@hiddenswitch.com> Date: Thu, 9 May 2024 17:11:40 -0700 Subject: [PATCH] Omit spurious traces --- comfy/tracing_compatibility.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/comfy/tracing_compatibility.py b/comfy/tracing_compatibility.py index 7bcebb544..6c0ef16f5 100644 --- a/comfy/tracing_compatibility.py +++ b/comfy/tracing_compatibility.py @@ -46,4 +46,7 @@ class ProgressSpanSampler(Sampler): ) -> "SamplingResult": if attributes is not None and "messaging.destination" in attributes and attributes["messaging.destination"].endswith("progress"): return SamplingResult(Decision.DROP) + # the ephemeral reply channels are not required for correct span correlation + if name.startswith(",amq_") or name.startswith("amq"): + return SamplingResult(Decision.DROP) return SamplingResult(Decision.RECORD_AND_SAMPLE)