Sha256: 9999fde62f23f3e7e40a5705f7818517c04b9a85833c8ed8e72e84479e120e86
Contents?: true
Size: 1.26 KB
Versions: 1
Compression:
Stored size: 1.26 KB
Contents
config = ElasticAPM::Config.new({"active" => false}) ElasticAPM::Agent.stop ElasticAPM::Agent.start(config) if defined?(ElasticAPM) && !ElasticAPM::Agent.instance.nil? if ZuoraConnect.configuration.enable_apm && !defined?(Rails::Console) ElasticAPM.agent.config.disable_send = false else ElasticAPM.agent.config.disable_send = true end case Rails.env.to_s when 'production' ElasticAPM.agent.config.server_url = "http://apm-server.logging:8200" ElasticAPM.agent.config.transaction_sample_rate = 0.20 ElasticAPM.agent.config.capture_body = false when 'staging' ElasticAPM.agent.config.server_url = "http://apm-server.logging:8200" ElasticAPM.agent.config.transaction_sample_rate = 1.0 when 'development' ElasticAPM.agent.config.server_url = "http://logging.0.ecc.auw2.zuora:8200" ElasticAPM.agent.config.transaction_sample_rate = 1.0 end ElasticAPM.agent.config.pool_size = 1 ElasticAPM.agent.config.transaction_max_spans = 500 ElasticAPM.agent.config.ignore_url_patterns = ['^\/admin\/resque.*', '^\/admin\/redis.*', '^\/admin\/peek.*', '^\/peek.*'] ElasticAPM.agent.config.verify_server_cert = false ElasticAPM.agent.config.log_level = Logger::INFO ElasticAPM.agent.config.service_name = ::ZuoraConnect::Telegraf.app_name end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
zuora_connect-1.7.81i | config/initializers/elastic_apm.rb |