lib/one_apm/configuration.rb in oneapm_rpm-1.3.7 vs lib/one_apm/configuration.rb in oneapm_rpm-1.4.0
- old
+ new
@@ -264,13 +264,17 @@
default = DEFAULTS[k]
OneApm::Manager.config[:"#{k}.notified"] || (default && default.fetch(:notified, false))
end
end
- def app_names
- case OneApm::Manager.config[:app_name]
- when Array then OneApm::Manager.config[:app_name]
- when String then OneApm::Manager.config[:app_name].split(';')
+ def app_name
+ OneApm::Manager.config[:app_name]
+ end
+
+ def tier_names
+ case OneApm::Manager.config[:tier_name]
+ when Array then OneApm::Manager.config[:tier_name]
+ when String then OneApm::Manager.config[:tier_name].split(';')
else []
end
end
MALFORMED_LABELS_WARNING = "Skipping malformed labels configuration"