Module: Contrast::Config::EnvVariables
- Included in:
- Agent::Telemetry, Agent::Telemetry::Base
- Defined in:
- lib/contrast/config/env_variables.rb
Overview
This module is holding all the Env Variables that we could use through the agent lifecycle
Constant Summary collapse
- ENV_VARIABLES =
{ telemetry_opt_outs: ENV['CONTRAST_AGENT_TELEMETRY_OPTOUT'].to_s || false }.cs__freeze
Instance Method Summary collapse
Instance Method Details
#return_value(key) ⇒ Object
10 11 12 13 14 15 |
# File 'lib/contrast/config/env_variables.rb', line 10 def return_value key return unless ENV_VARIABLES.key?(key.to_sym) sym_key = key.downcase.to_sym ENV_VARIABLES[sym_key] end |