Remove statsd support.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2023-04-25 18:09:19 -07:00
committed by Tim Abbott
parent ca6b0d8c5a
commit 9db3451333
26 changed files with 13 additions and 318 deletions

View File

@@ -18,7 +18,7 @@ from pika.channel import Channel
from pika.spec import Basic
from tornado import ioloop
from zerver.lib.utils import assert_is_not_none, statsd
from zerver.lib.utils import assert_is_not_none
MAX_REQUEST_RETRIES = 3
ChannelT = TypeVar("ChannelT", Channel, BlockingChannel)
@@ -128,8 +128,6 @@ class QueueClient(Generic[ChannelT], metaclass=ABCMeta):
body=body,
)
statsd.incr(f"rabbitmq.publish.{queue_name}")
self.ensure_queue(queue_name, do_publish)
def json_publish(self, queue_name: str, body: Mapping[str, Any]) -> None: