Sending metrics from start, stream-routes params causes failures
gwthm-in opened this issue · 0 comments
gwthm-in commented
When sending metrics from start and stream-routes causes to failure of sending metrics as ziggurat/metrics initialization is happening later.
Here is the relevant code:
(defn start
"Starts up Ziggurat's config, actor fn, rabbitmq connection and then streams, server etc"
[actor-start-fn stream-routes actor-routes]
(start* #{#'config/config})
(actor-start-fn)
(start* #{#'messaging-connection/connection} {:stream-routes stream-routes})
(messaging-producer/make-queues stream-routes)
(messaging-consumer/start-subscribers stream-routes) ;; We want subscribers to start after creating queues on RabbitMQ.
(start* #{#'statsd-reporter
#'server/server
#'nrepl-server/server
#'streams/stream
#'sentry-reporter}
{:stream-routes stream-routes
:actor-routes actor-routes}))