Skip to content
Extraits de code Groupes Projets
Valider 546257bc rédigé par Eugen Rochko's avatar Eugen Rochko Validation de Yamagishi Kazutoshi
Parcourir les fichiers

Allow specifying STATSD_NAMESPACE (#5700)

parent fbef909c
Branches
Étiquettes
Aucune requête de fusion associée trouvée
......@@ -4,7 +4,7 @@ if ENV['STATSD_ADDR'].present?
host, port = ENV['STATSD_ADDR'].split(':')
statsd = ::Statsd.new(host, port)
statsd.namespace = ['Mastodon', Rails.env].join('.')
statsd.namespace = ENV.fetch('STATSD_NAMESPACE') { ['Mastodon', Rails.env].join('.') }
::NSA.inform_statsd(statsd) do |informant|
informant.collect(:action_controller, :web)
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter