Class: BrainzLab::Configuration
- Inherits:
-
Object
- Object
- BrainzLab::Configuration
- Defined in:
- lib/brainzlab/configuration.rb
Constant Summary collapse
- LEVELS =
%i[debug info warn error fatal].freeze
- SELF_TRACKING_SERVICES =
Services that should not track themselves to avoid circular dependencies
{ 'recall' => :recall_enabled, 'reflex' => :reflex_enabled, 'pulse' => :pulse_enabled, 'flux' => :flux_enabled, 'signal' => :signal_enabled }.freeze
- MODES =
%i[production development].freeze
Instance Attribute Summary collapse
-
#app_name ⇒ Object
Returns the value of attribute app_name.
-
#beacon_api_key ⇒ Object
Returns the value of attribute beacon_api_key.
-
#beacon_auto_provision ⇒ Object
Returns the value of attribute beacon_auto_provision.
-
#beacon_enabled ⇒ Object
Returns the value of attribute beacon_enabled.
-
#beacon_master_key ⇒ Object
Returns the value of attribute beacon_master_key.
-
#beacon_url ⇒ Object
Returns the value of attribute beacon_url.
-
#branch ⇒ Object
Returns the value of attribute branch.
-
#commit ⇒ Object
Returns the value of attribute commit.
-
#cortex_api_key ⇒ Object
Returns the value of attribute cortex_api_key.
-
#cortex_auto_provision ⇒ Object
Returns the value of attribute cortex_auto_provision.
-
#cortex_cache_enabled ⇒ Object
Returns the value of attribute cortex_cache_enabled.
-
#cortex_cache_ttl ⇒ Object
Returns the value of attribute cortex_cache_ttl.
-
#cortex_default_context ⇒ Object
Returns the value of attribute cortex_default_context.
-
#cortex_enabled ⇒ Object
Returns the value of attribute cortex_enabled.
-
#cortex_master_key ⇒ Object
Returns the value of attribute cortex_master_key.
-
#cortex_url ⇒ Object
Returns the value of attribute cortex_url.
-
#debug ⇒ Object
Returns the value of attribute debug.
-
#dendrite_api_key ⇒ Object
Returns the value of attribute dendrite_api_key.
-
#dendrite_auto_provision ⇒ Object
Returns the value of attribute dendrite_auto_provision.
-
#dendrite_enabled ⇒ Object
Returns the value of attribute dendrite_enabled.
-
#dendrite_master_key ⇒ Object
Returns the value of attribute dendrite_master_key.
-
#dendrite_url ⇒ Object
Returns the value of attribute dendrite_url.
-
#development_db_path ⇒ Object
Returns the value of attribute development_db_path.
-
#development_log_output ⇒ Object
Returns the value of attribute development_log_output.
-
#devtools_allowed_environments ⇒ Object
Returns the value of attribute devtools_allowed_environments.
-
#devtools_allowed_ips ⇒ Object
Returns the value of attribute devtools_allowed_ips.
-
#devtools_asset_path ⇒ Object
Returns the value of attribute devtools_asset_path.
-
#devtools_debug_panel_enabled ⇒ Object
Returns the value of attribute devtools_debug_panel_enabled.
-
#devtools_enabled ⇒ Object
Returns the value of attribute devtools_enabled.
-
#devtools_error_page_enabled ⇒ Object
Returns the value of attribute devtools_error_page_enabled.
-
#devtools_expand_by_default ⇒ Object
Returns the value of attribute devtools_expand_by_default.
-
#devtools_panel_position ⇒ Object
Returns the value of attribute devtools_panel_position.
-
#disable_self_tracking ⇒ Object
Returns the value of attribute disable_self_tracking.
-
#enabled ⇒ Object
Returns the value of attribute enabled.
-
#environment ⇒ Object
Returns the value of attribute environment.
-
#flux_api_key ⇒ Object
Returns the value of attribute flux_api_key.
-
#flux_auto_provision ⇒ Object
Returns the value of attribute flux_auto_provision.
-
#flux_buffer_size ⇒ Object
Returns the value of attribute flux_buffer_size.
-
#flux_enabled ⇒ Object
Returns the value of attribute flux_enabled.
-
#flux_flush_interval ⇒ Object
Returns the value of attribute flux_flush_interval.
-
#flux_ingest_key ⇒ Object
Returns the value of attribute flux_ingest_key.
-
#flux_master_key ⇒ Object
Returns the value of attribute flux_master_key.
-
#flux_url ⇒ Object
Returns the value of attribute flux_url.
-
#host ⇒ Object
Returns the value of attribute host.
-
#http_ignore_hosts ⇒ Object
Returns the value of attribute http_ignore_hosts.
-
#instrument_action_cable ⇒ Object
Returns the value of attribute instrument_action_cable.
-
#instrument_action_controller ⇒ Object
Returns the value of attribute instrument_action_controller.
-
#instrument_action_dispatch ⇒ Object
Returns the value of attribute instrument_action_dispatch.
-
#instrument_action_mailbox ⇒ Object
Returns the value of attribute instrument_action_mailbox.
-
#instrument_action_mailer ⇒ Object
Returns the value of attribute instrument_action_mailer.
-
#instrument_action_view ⇒ Object
Returns the value of attribute instrument_action_view.
-
#instrument_active_job ⇒ Object
Returns the value of attribute instrument_active_job.
-
#instrument_active_record ⇒ Object
Returns the value of attribute instrument_active_record.
-
#instrument_active_storage ⇒ Object
Returns the value of attribute instrument_active_storage.
-
#instrument_active_support_cache ⇒ Object
Returns the value of attribute instrument_active_support_cache.
-
#instrument_aws ⇒ Object
Returns the value of attribute instrument_aws.
-
#instrument_dalli ⇒ Object
Returns the value of attribute instrument_dalli.
-
#instrument_delayed_job ⇒ Object
Returns the value of attribute instrument_delayed_job.
-
#instrument_elasticsearch ⇒ Object
Returns the value of attribute instrument_elasticsearch.
-
#instrument_excon ⇒ Object
Returns the value of attribute instrument_excon.
-
#instrument_good_job ⇒ Object
Returns the value of attribute instrument_good_job.
-
#instrument_grape ⇒ Object
Returns the value of attribute instrument_grape.
-
#instrument_graphql ⇒ Object
Returns the value of attribute instrument_graphql.
-
#instrument_http ⇒ Object
Returns the value of attribute instrument_http.
-
#instrument_mongodb ⇒ Object
Returns the value of attribute instrument_mongodb.
-
#instrument_rails_deprecation ⇒ Object
Returns the value of attribute instrument_rails_deprecation.
-
#instrument_railties ⇒ Object
Returns the value of attribute instrument_railties.
-
#instrument_redis ⇒ Object
Returns the value of attribute instrument_redis.
-
#instrument_resque ⇒ Object
Returns the value of attribute instrument_resque.
-
#instrument_sidekiq ⇒ Object
Returns the value of attribute instrument_sidekiq.
-
#instrument_solid_queue ⇒ Object
Returns the value of attribute instrument_solid_queue.
-
#instrument_stripe ⇒ Object
Returns the value of attribute instrument_stripe.
-
#instrument_typhoeus ⇒ Object
Returns the value of attribute instrument_typhoeus.
-
#log_formatter_colors ⇒ Object
Returns the value of attribute log_formatter_colors.
-
#log_formatter_compact_assets ⇒ Object
Returns the value of attribute log_formatter_compact_assets.
-
#log_formatter_enabled ⇒ Object
Returns the value of attribute log_formatter_enabled.
-
#log_formatter_hide_assets ⇒ Object
Returns the value of attribute log_formatter_hide_assets.
-
#log_formatter_show_params ⇒ Object
Returns the value of attribute log_formatter_show_params.
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#mode ⇒ Object
mode has a custom setter with validation.
-
#nerve_api_key ⇒ Object
Returns the value of attribute nerve_api_key.
-
#nerve_auto_provision ⇒ Object
Returns the value of attribute nerve_auto_provision.
-
#nerve_enabled ⇒ Object
Returns the value of attribute nerve_enabled.
-
#nerve_master_key ⇒ Object
Returns the value of attribute nerve_master_key.
-
#nerve_url ⇒ Object
Returns the value of attribute nerve_url.
-
#on_error ⇒ Object
Returns the value of attribute on_error.
-
#on_send ⇒ Object
Returns the value of attribute on_send.
-
#pulse_api_key ⇒ Object
Returns the value of attribute pulse_api_key.
-
#pulse_auto_provision ⇒ Object
Returns the value of attribute pulse_auto_provision.
-
#pulse_buffer_size ⇒ Object
Returns the value of attribute pulse_buffer_size.
-
#pulse_enabled ⇒ Object
Returns the value of attribute pulse_enabled.
-
#pulse_excluded_paths ⇒ Object
Returns the value of attribute pulse_excluded_paths.
-
#pulse_flush_interval ⇒ Object
Returns the value of attribute pulse_flush_interval.
-
#pulse_master_key ⇒ Object
Returns the value of attribute pulse_master_key.
-
#pulse_sample_rate ⇒ Object
Returns the value of attribute pulse_sample_rate.
-
#pulse_url ⇒ Object
Returns the value of attribute pulse_url.
-
#rails_instrumentation_handled_externally ⇒ Object
Returns the value of attribute rails_instrumentation_handled_externally.
-
#recall_auto_provision ⇒ Object
Returns the value of attribute recall_auto_provision.
-
#recall_buffer_size ⇒ Object
Returns the value of attribute recall_buffer_size.
-
#recall_enabled ⇒ Object
Returns the value of attribute recall_enabled.
-
#recall_flush_interval ⇒ Object
Returns the value of attribute recall_flush_interval.
-
#recall_master_key ⇒ Object
Returns the value of attribute recall_master_key.
-
#recall_min_level ⇒ Object
recall_min_level has a custom setter with validation.
-
#recall_url ⇒ Object
Returns the value of attribute recall_url.
-
#redis_ignore_commands ⇒ Object
Returns the value of attribute redis_ignore_commands.
-
#reflex_api_key ⇒ Object
Returns the value of attribute reflex_api_key.
-
#reflex_auto_provision ⇒ Object
Returns the value of attribute reflex_auto_provision.
-
#reflex_before_send ⇒ Object
Returns the value of attribute reflex_before_send.
-
#reflex_enabled ⇒ Object
Returns the value of attribute reflex_enabled.
-
#reflex_excluded_exceptions ⇒ Object
Returns the value of attribute reflex_excluded_exceptions.
-
#reflex_fingerprint ⇒ Object
Returns the value of attribute reflex_fingerprint.
-
#reflex_master_key ⇒ Object
Returns the value of attribute reflex_master_key.
-
#reflex_sample_rate ⇒ Object
Returns the value of attribute reflex_sample_rate.
-
#reflex_url ⇒ Object
Returns the value of attribute reflex_url.
-
#scrub_fields ⇒ Object
Returns the value of attribute scrub_fields.
-
#secret_key ⇒ Object
Returns the value of attribute secret_key.
-
#sentinel_agent_key ⇒ Object
Returns the value of attribute sentinel_agent_key.
-
#sentinel_api_key ⇒ Object
Returns the value of attribute sentinel_api_key.
-
#sentinel_auto_provision ⇒ Object
Returns the value of attribute sentinel_auto_provision.
-
#sentinel_enabled ⇒ Object
Returns the value of attribute sentinel_enabled.
-
#sentinel_master_key ⇒ Object
Returns the value of attribute sentinel_master_key.
-
#sentinel_url ⇒ Object
Returns the value of attribute sentinel_url.
-
#service ⇒ Object
Returns the value of attribute service.
-
#signal_api_key ⇒ Object
Returns the value of attribute signal_api_key.
-
#signal_auto_provision ⇒ Object
Returns the value of attribute signal_auto_provision.
-
#signal_enabled ⇒ Object
Returns the value of attribute signal_enabled.
-
#signal_ingest_key ⇒ Object
Returns the value of attribute signal_ingest_key.
-
#signal_master_key ⇒ Object
Returns the value of attribute signal_master_key.
-
#signal_url ⇒ Object
Returns the value of attribute signal_url.
-
#synapse_api_key ⇒ Object
Returns the value of attribute synapse_api_key.
-
#synapse_auto_provision ⇒ Object
Returns the value of attribute synapse_auto_provision.
-
#synapse_enabled ⇒ Object
Returns the value of attribute synapse_enabled.
-
#synapse_master_key ⇒ Object
Returns the value of attribute synapse_master_key.
-
#synapse_url ⇒ Object
Returns the value of attribute synapse_url.
-
#vault_api_key ⇒ Object
Returns the value of attribute vault_api_key.
-
#vault_auto_load ⇒ Object
Returns the value of attribute vault_auto_load.
-
#vault_auto_provision ⇒ Object
Returns the value of attribute vault_auto_provision.
-
#vault_cache_enabled ⇒ Object
Returns the value of attribute vault_cache_enabled.
-
#vault_cache_ttl ⇒ Object
Returns the value of attribute vault_cache_ttl.
-
#vault_enabled ⇒ Object
Returns the value of attribute vault_enabled.
-
#vault_load_provider_keys ⇒ Object
Returns the value of attribute vault_load_provider_keys.
-
#vault_master_key ⇒ Object
Returns the value of attribute vault_master_key.
-
#vault_url ⇒ Object
Returns the value of attribute vault_url.
-
#vision_api_key ⇒ Object
Returns the value of attribute vision_api_key.
-
#vision_auto_provision ⇒ Object
Returns the value of attribute vision_auto_provision.
-
#vision_default_browser_provider ⇒ Object
Returns the value of attribute vision_default_browser_provider.
-
#vision_default_model ⇒ Object
Returns the value of attribute vision_default_model.
-
#vision_enabled ⇒ Object
Returns the value of attribute vision_enabled.
-
#vision_ingest_key ⇒ Object
Returns the value of attribute vision_ingest_key.
-
#vision_master_key ⇒ Object
Returns the value of attribute vision_master_key.
-
#vision_url ⇒ Object
Returns the value of attribute vision_url.
Instance Method Summary collapse
- #beacon_auth_key ⇒ Object
- #beacon_valid? ⇒ Boolean
- #cortex_auth_key ⇒ Object
- #cortex_valid? ⇒ Boolean
- #debug? ⇒ Boolean
- #debug_log(message) ⇒ Object
- #dendrite_auth_key ⇒ Object
- #dendrite_valid? ⇒ Boolean
- #development_mode? ⇒ Boolean
- #enabled? ⇒ Boolean
- #flux_auth_key ⇒ Object
-
#flux_effectively_enabled? ⇒ Boolean
Check if flux is effectively enabled (considering self-tracking).
- #flux_valid? ⇒ Boolean
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #level_enabled?(level) ⇒ Boolean
- #nerve_auth_key ⇒ Object
- #nerve_valid? ⇒ Boolean
- #pulse_auth_key ⇒ Object
-
#pulse_effectively_enabled? ⇒ Boolean
Check if pulse is effectively enabled (considering self-tracking).
- #pulse_valid? ⇒ Boolean
-
#recall_effectively_enabled? ⇒ Boolean
Check if recall is effectively enabled (considering self-tracking).
- #reflex_auth_key ⇒ Object
-
#reflex_effectively_enabled? ⇒ Boolean
Check if reflex is effectively enabled (considering self-tracking).
- #reflex_valid? ⇒ Boolean
-
#sdk_service_hosts ⇒ Object
Returns hostnames of all configured SDK service URLs Used by Net::HTTP instrumentation to skip tracking SDK’s own HTTP calls.
- #sentinel_auth_key ⇒ Object
- #sentinel_valid? ⇒ Boolean
- #signal_auth_key ⇒ Object
-
#signal_effectively_enabled? ⇒ Boolean
Check if signal is effectively enabled (considering self-tracking).
- #signal_valid? ⇒ Boolean
- #synapse_auth_key ⇒ Object
- #synapse_valid? ⇒ Boolean
- #valid? ⇒ Boolean
- #vault_auth_key ⇒ Object
- #vault_valid? ⇒ Boolean
- #vision_auth_key ⇒ Object
- #vision_valid? ⇒ Boolean
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 |
# File 'lib/brainzlab/configuration.rb', line 172 def initialize # SDK enabled flag — set BRAINZLAB_SDK_ENABLED=false to completely disable @enabled = ENV.fetch('BRAINZLAB_SDK_ENABLED', 'true') != 'false' # Authentication @secret_key = ENV.fetch('BRAINZLAB_SECRET_KEY', nil) # Environment @environment = ENV['BRAINZLAB_ENVIRONMENT'] || detect_environment @service = ENV.fetch('BRAINZLAB_SERVICE', nil) @host = ENV['BRAINZLAB_HOST'] || detect_host # App name for auto-provisioning @app_name = ENV.fetch('BRAINZLAB_APP_NAME', nil) # Git context @commit = ENV['GIT_COMMIT'] || ENV['COMMIT_SHA'] || detect_git_commit @branch = ENV['GIT_BRANCH'] || ENV['BRANCH_NAME'] || detect_git_branch # Debug mode - enables verbose logging @debug = ENV['BRAINZLAB_DEBUG'] == 'true' # SDK mode - :production (default) or :development (offline, local storage) @mode = ENV['BRAINZLAB_MODE']&.to_sym || :production # Development mode settings @development_db_path = ENV['BRAINZLAB_DEV_DB_PATH'] || 'tmp/brainzlab.sqlite3' @development_log_output = $stdout # Disable self-tracking - prevents services from tracking to themselves # e.g., Recall won't log to itself, Reflex won't track errors to itself @disable_self_tracking = ENV.fetch('BRAINZLAB_DISABLE_SELF_TRACKING', 'true') == 'true' # Recall settings @recall_enabled = true @recall_url = ENV['RECALL_URL'] || detect_product_url('recall') @recall_min_level = :debug @recall_buffer_size = 50 @recall_flush_interval = 5 @recall_master_key = ENV.fetch('RECALL_MASTER_KEY', nil) @recall_auto_provision = true # Reflex settings @reflex_enabled = true @reflex_url = ENV['REFLEX_URL'] || detect_product_url('reflex') @reflex_api_key = ENV.fetch('REFLEX_API_KEY', nil) @reflex_master_key = ENV.fetch('REFLEX_MASTER_KEY', nil) @reflex_auto_provision = true @reflex_excluded_exceptions = [] @reflex_before_send = nil @reflex_sample_rate = nil @reflex_fingerprint = nil # Custom fingerprint callback # Pulse settings @pulse_enabled = true @pulse_url = ENV['PULSE_URL'] || detect_product_url('pulse') @pulse_api_key = ENV.fetch('PULSE_API_KEY', nil) @pulse_master_key = ENV.fetch('PULSE_MASTER_KEY', nil) @pulse_auto_provision = true @pulse_buffer_size = 50 @pulse_flush_interval = 5 @pulse_sample_rate = nil @pulse_excluded_paths = %w[/health /ping /up /assets] # Flux settings @flux_enabled = true @flux_url = ENV['FLUX_URL'] || 'https://flux.brainzlab.ai' @flux_api_key = ENV.fetch('FLUX_API_KEY', nil) @flux_ingest_key = ENV.fetch('FLUX_INGEST_KEY', nil) @flux_master_key = ENV.fetch('FLUX_MASTER_KEY', nil) @flux_auto_provision = true @flux_buffer_size = 100 @flux_flush_interval = 5 # Signal settings @signal_enabled = true @signal_url = ENV['SIGNAL_URL'] || detect_product_url('signal') @signal_api_key = ENV.fetch('SIGNAL_API_KEY', nil) @signal_ingest_key = ENV.fetch('SIGNAL_INGEST_KEY', nil) @signal_master_key = ENV.fetch('SIGNAL_MASTER_KEY', nil) @signal_auto_provision = true # Vault settings @vault_enabled = true @vault_url = ENV['VAULT_URL'] || 'https://vault.brainzlab.ai' @vault_api_key = ENV.fetch('VAULT_API_KEY', nil) @vault_master_key = ENV.fetch('VAULT_MASTER_KEY', nil) @vault_auto_provision = true @vault_cache_enabled = true @vault_cache_ttl = 300 # 5 minutes @vault_auto_load = ENV.fetch('VAULT_AUTO_LOAD', 'false') == 'true' # Auto-load secrets into ENV @vault_load_provider_keys = true # Also load provider keys (OpenAI, etc.) # Vision settings (AI browser automation) @vision_enabled = true @vision_url = ENV['VISION_URL'] || 'https://vision.brainzlab.ai' @vision_api_key = ENV.fetch('VISION_API_KEY', nil) @vision_ingest_key = ENV.fetch('VISION_INGEST_KEY', nil) @vision_master_key = ENV.fetch('VISION_MASTER_KEY', nil) @vision_auto_provision = true @vision_default_model = ENV['VISION_DEFAULT_MODEL'] || 'claude-sonnet-4' @vision_default_browser_provider = ENV['VISION_DEFAULT_BROWSER_PROVIDER'] || 'local' # Cortex settings (feature flags) @cortex_enabled = true @cortex_url = ENV['CORTEX_URL'] || 'https://cortex.brainzlab.ai' @cortex_api_key = ENV.fetch('CORTEX_API_KEY', nil) @cortex_master_key = ENV.fetch('CORTEX_MASTER_KEY', nil) @cortex_auto_provision = true @cortex_cache_enabled = true @cortex_cache_ttl = 60 # 1 minute @cortex_default_context = {} # Beacon settings (uptime monitoring) @beacon_enabled = true @beacon_url = ENV['BEACON_URL'] || 'https://beacon.brainzlab.ai' @beacon_api_key = ENV.fetch('BEACON_API_KEY', nil) @beacon_master_key = ENV.fetch('BEACON_MASTER_KEY', nil) @beacon_auto_provision = true # Nerve settings (job monitoring) @nerve_enabled = true @nerve_url = ENV['NERVE_URL'] || 'https://nerve.brainzlab.ai' @nerve_api_key = ENV.fetch('NERVE_API_KEY', nil) @nerve_master_key = ENV.fetch('NERVE_MASTER_KEY', nil) @nerve_auto_provision = true # Dendrite settings (AI documentation) @dendrite_enabled = true @dendrite_url = ENV['DENDRITE_URL'] || 'https://dendrite.brainzlab.ai' @dendrite_api_key = ENV.fetch('DENDRITE_API_KEY', nil) @dendrite_master_key = ENV.fetch('DENDRITE_MASTER_KEY', nil) @dendrite_auto_provision = true # Sentinel settings (host monitoring) @sentinel_enabled = true @sentinel_url = ENV['SENTINEL_URL'] || 'https://sentinel.brainzlab.ai' @sentinel_api_key = ENV.fetch('SENTINEL_API_KEY', nil) @sentinel_agent_key = ENV.fetch('SENTINEL_AGENT_KEY', nil) @sentinel_master_key = ENV.fetch('SENTINEL_MASTER_KEY', nil) @sentinel_auto_provision = true # Synapse settings (AI development orchestration) @synapse_enabled = true @synapse_url = ENV['SYNAPSE_URL'] || 'https://synapse.brainzlab.ai' @synapse_api_key = ENV.fetch('SYNAPSE_API_KEY', nil) @synapse_master_key = ENV.fetch('SYNAPSE_MASTER_KEY', nil) @synapse_auto_provision = true # Filtering @scrub_fields = %i[password password_confirmation token api_key secret] # Internal logger for debugging SDK issues @logger = nil # Debug callbacks # Called when an SDK error occurs (lambda/proc receiving error object and context hash) @on_error = nil # Called before each API request (lambda/proc receiving service, method, path, and payload) @on_send = nil # Instrumentation @instrument_http = true # Enable HTTP client instrumentation (Net::HTTP, Faraday, HTTParty) @instrument_active_record = true # AR breadcrumbs for Reflex @instrument_redis = true # Redis command instrumentation @instrument_sidekiq = true # Sidekiq job instrumentation @instrument_graphql = true # GraphQL query instrumentation @instrument_mongodb = true # MongoDB/Mongoid instrumentation @instrument_elasticsearch = true # Elasticsearch instrumentation @instrument_action_controller = true # ActionController instrumentation (requests, redirects, filters) @instrument_action_view = true # ActionView instrumentation (templates, partials, collections) @instrument_action_mailer = true # ActionMailer instrumentation @instrument_active_job = true # ActiveJob instrumentation (enqueue, perform, retry, discard) @instrument_active_support_cache = true # ActiveSupport::Cache instrumentation (read, write, fetch) @instrument_delayed_job = true # Delayed::Job instrumentation @instrument_grape = true # Grape API instrumentation @instrument_solid_queue = true # Solid Queue job instrumentation @instrument_good_job = true # GoodJob instrumentation @instrument_resque = true # Resque instrumentation @instrument_excon = true # Excon HTTP client instrumentation @instrument_typhoeus = true # Typhoeus HTTP client instrumentation @instrument_dalli = true # Dalli/Memcached instrumentation @instrument_aws = true # AWS SDK instrumentation @instrument_stripe = true # Stripe API instrumentation @instrument_active_storage = true # ActiveStorage instrumentation (uploads, downloads, transforms) @instrument_action_cable = true # ActionCable WebSocket instrumentation @instrument_action_dispatch = true # ActionDispatch instrumentation (middleware, redirects, requests) @instrument_rails_deprecation = true # Rails deprecation warnings tracking @instrument_action_mailbox = true # ActionMailbox inbound email processing instrumentation @instrument_railties = true # Railties config initializer loading instrumentation @http_ignore_hosts = %w[localhost 127.0.0.1] @redis_ignore_commands = %w[ping info] # Commands to skip tracking # Log formatter settings @log_formatter_enabled = true @log_formatter_colors = nil # auto-detect TTY @log_formatter_hide_assets = false @log_formatter_compact_assets = true @log_formatter_show_params = true # DevTools settings (development error page and debug panel) @devtools_enabled = true @devtools_error_page_enabled = true @devtools_debug_panel_enabled = true @devtools_allowed_environments = %w[development test] @devtools_allowed_ips = ['127.0.0.1', '::1', '172.16.0.0/12', '192.168.0.0/16', '10.0.0.0/8'] @devtools_asset_path = '/__brainzlab__' @devtools_panel_position = 'bottom-right' @devtools_expand_by_default = false # Rails instrumentation delegation # When true, brainzlab-rails gem handles Rails-specific instrumentation # SDK will only install non-Rails instrumentation (HTTP clients, Redis, etc.) @rails_instrumentation_handled_externally = false end |
Instance Attribute Details
#app_name ⇒ Object
Returns the value of attribute app_name.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def app_name @app_name end |
#beacon_api_key ⇒ Object
Returns the value of attribute beacon_api_key.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def beacon_api_key @beacon_api_key end |
#beacon_auto_provision ⇒ Object
Returns the value of attribute beacon_auto_provision.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def beacon_auto_provision @beacon_auto_provision end |
#beacon_enabled ⇒ Object
Returns the value of attribute beacon_enabled.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def beacon_enabled @beacon_enabled end |
#beacon_master_key ⇒ Object
Returns the value of attribute beacon_master_key.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def beacon_master_key @beacon_master_key end |
#beacon_url ⇒ Object
Returns the value of attribute beacon_url.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def beacon_url @beacon_url end |
#branch ⇒ Object
Returns the value of attribute branch.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def branch @branch end |
#commit ⇒ Object
Returns the value of attribute commit.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def commit @commit end |
#cortex_api_key ⇒ Object
Returns the value of attribute cortex_api_key.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def cortex_api_key @cortex_api_key end |
#cortex_auto_provision ⇒ Object
Returns the value of attribute cortex_auto_provision.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def cortex_auto_provision @cortex_auto_provision end |
#cortex_cache_enabled ⇒ Object
Returns the value of attribute cortex_cache_enabled.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def cortex_cache_enabled @cortex_cache_enabled end |
#cortex_cache_ttl ⇒ Object
Returns the value of attribute cortex_cache_ttl.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def cortex_cache_ttl @cortex_cache_ttl end |
#cortex_default_context ⇒ Object
Returns the value of attribute cortex_default_context.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def cortex_default_context @cortex_default_context end |
#cortex_enabled ⇒ Object
Returns the value of attribute cortex_enabled.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def cortex_enabled @cortex_enabled end |
#cortex_master_key ⇒ Object
Returns the value of attribute cortex_master_key.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def cortex_master_key @cortex_master_key end |
#cortex_url ⇒ Object
Returns the value of attribute cortex_url.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def cortex_url @cortex_url end |
#debug ⇒ Object
Returns the value of attribute debug.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def debug @debug end |
#dendrite_api_key ⇒ Object
Returns the value of attribute dendrite_api_key.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def dendrite_api_key @dendrite_api_key end |
#dendrite_auto_provision ⇒ Object
Returns the value of attribute dendrite_auto_provision.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def dendrite_auto_provision @dendrite_auto_provision end |
#dendrite_enabled ⇒ Object
Returns the value of attribute dendrite_enabled.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def dendrite_enabled @dendrite_enabled end |
#dendrite_master_key ⇒ Object
Returns the value of attribute dendrite_master_key.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def dendrite_master_key @dendrite_master_key end |
#dendrite_url ⇒ Object
Returns the value of attribute dendrite_url.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def dendrite_url @dendrite_url end |
#development_db_path ⇒ Object
Returns the value of attribute development_db_path.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def development_db_path @development_db_path end |
#development_log_output ⇒ Object
Returns the value of attribute development_log_output.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def development_log_output @development_log_output end |
#devtools_allowed_environments ⇒ Object
Returns the value of attribute devtools_allowed_environments.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def devtools_allowed_environments @devtools_allowed_environments end |
#devtools_allowed_ips ⇒ Object
Returns the value of attribute devtools_allowed_ips.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def devtools_allowed_ips @devtools_allowed_ips end |
#devtools_asset_path ⇒ Object
Returns the value of attribute devtools_asset_path.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def devtools_asset_path @devtools_asset_path end |
#devtools_debug_panel_enabled ⇒ Object
Returns the value of attribute devtools_debug_panel_enabled.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def devtools_debug_panel_enabled @devtools_debug_panel_enabled end |
#devtools_enabled ⇒ Object
Returns the value of attribute devtools_enabled.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def devtools_enabled @devtools_enabled end |
#devtools_error_page_enabled ⇒ Object
Returns the value of attribute devtools_error_page_enabled.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def devtools_error_page_enabled @devtools_error_page_enabled end |
#devtools_expand_by_default ⇒ Object
Returns the value of attribute devtools_expand_by_default.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def @devtools_expand_by_default end |
#devtools_panel_position ⇒ Object
Returns the value of attribute devtools_panel_position.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def devtools_panel_position @devtools_panel_position end |
#disable_self_tracking ⇒ Object
Returns the value of attribute disable_self_tracking.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def disable_self_tracking @disable_self_tracking end |
#enabled ⇒ Object
Returns the value of attribute enabled.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def enabled @enabled end |
#environment ⇒ Object
Returns the value of attribute environment.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def environment @environment end |
#flux_api_key ⇒ Object
Returns the value of attribute flux_api_key.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def flux_api_key @flux_api_key end |
#flux_auto_provision ⇒ Object
Returns the value of attribute flux_auto_provision.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def flux_auto_provision @flux_auto_provision end |
#flux_buffer_size ⇒ Object
Returns the value of attribute flux_buffer_size.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def flux_buffer_size @flux_buffer_size end |
#flux_enabled ⇒ Object
Returns the value of attribute flux_enabled.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def flux_enabled @flux_enabled end |
#flux_flush_interval ⇒ Object
Returns the value of attribute flux_flush_interval.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def flux_flush_interval @flux_flush_interval end |
#flux_ingest_key ⇒ Object
Returns the value of attribute flux_ingest_key.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def flux_ingest_key @flux_ingest_key end |
#flux_master_key ⇒ Object
Returns the value of attribute flux_master_key.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def flux_master_key @flux_master_key end |
#flux_url ⇒ Object
Returns the value of attribute flux_url.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def flux_url @flux_url end |
#host ⇒ Object
Returns the value of attribute host.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def host @host end |
#http_ignore_hosts ⇒ Object
Returns the value of attribute http_ignore_hosts.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def http_ignore_hosts @http_ignore_hosts end |
#instrument_action_cable ⇒ Object
Returns the value of attribute instrument_action_cable.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def instrument_action_cable @instrument_action_cable end |
#instrument_action_controller ⇒ Object
Returns the value of attribute instrument_action_controller.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def instrument_action_controller @instrument_action_controller end |
#instrument_action_dispatch ⇒ Object
Returns the value of attribute instrument_action_dispatch.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def instrument_action_dispatch @instrument_action_dispatch end |
#instrument_action_mailbox ⇒ Object
Returns the value of attribute instrument_action_mailbox.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def instrument_action_mailbox @instrument_action_mailbox end |
#instrument_action_mailer ⇒ Object
Returns the value of attribute instrument_action_mailer.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def instrument_action_mailer @instrument_action_mailer end |
#instrument_action_view ⇒ Object
Returns the value of attribute instrument_action_view.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def instrument_action_view @instrument_action_view end |
#instrument_active_job ⇒ Object
Returns the value of attribute instrument_active_job.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def instrument_active_job @instrument_active_job end |
#instrument_active_record ⇒ Object
Returns the value of attribute instrument_active_record.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def instrument_active_record @instrument_active_record end |
#instrument_active_storage ⇒ Object
Returns the value of attribute instrument_active_storage.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def instrument_active_storage @instrument_active_storage end |
#instrument_active_support_cache ⇒ Object
Returns the value of attribute instrument_active_support_cache.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def instrument_active_support_cache @instrument_active_support_cache end |
#instrument_aws ⇒ Object
Returns the value of attribute instrument_aws.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def instrument_aws @instrument_aws end |
#instrument_dalli ⇒ Object
Returns the value of attribute instrument_dalli.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def instrument_dalli @instrument_dalli end |
#instrument_delayed_job ⇒ Object
Returns the value of attribute instrument_delayed_job.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def instrument_delayed_job @instrument_delayed_job end |
#instrument_elasticsearch ⇒ Object
Returns the value of attribute instrument_elasticsearch.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def instrument_elasticsearch @instrument_elasticsearch end |
#instrument_excon ⇒ Object
Returns the value of attribute instrument_excon.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def instrument_excon @instrument_excon end |
#instrument_good_job ⇒ Object
Returns the value of attribute instrument_good_job.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def instrument_good_job @instrument_good_job end |
#instrument_grape ⇒ Object
Returns the value of attribute instrument_grape.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def instrument_grape @instrument_grape end |
#instrument_graphql ⇒ Object
Returns the value of attribute instrument_graphql.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def instrument_graphql @instrument_graphql end |
#instrument_http ⇒ Object
Returns the value of attribute instrument_http.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def instrument_http @instrument_http end |
#instrument_mongodb ⇒ Object
Returns the value of attribute instrument_mongodb.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def instrument_mongodb @instrument_mongodb end |
#instrument_rails_deprecation ⇒ Object
Returns the value of attribute instrument_rails_deprecation.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def instrument_rails_deprecation @instrument_rails_deprecation end |
#instrument_railties ⇒ Object
Returns the value of attribute instrument_railties.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def instrument_railties @instrument_railties end |
#instrument_redis ⇒ Object
Returns the value of attribute instrument_redis.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def instrument_redis @instrument_redis end |
#instrument_resque ⇒ Object
Returns the value of attribute instrument_resque.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def instrument_resque @instrument_resque end |
#instrument_sidekiq ⇒ Object
Returns the value of attribute instrument_sidekiq.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def instrument_sidekiq @instrument_sidekiq end |
#instrument_solid_queue ⇒ Object
Returns the value of attribute instrument_solid_queue.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def instrument_solid_queue @instrument_solid_queue end |
#instrument_stripe ⇒ Object
Returns the value of attribute instrument_stripe.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def instrument_stripe @instrument_stripe end |
#instrument_typhoeus ⇒ Object
Returns the value of attribute instrument_typhoeus.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def instrument_typhoeus @instrument_typhoeus end |
#log_formatter_colors ⇒ Object
Returns the value of attribute log_formatter_colors.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def log_formatter_colors @log_formatter_colors end |
#log_formatter_compact_assets ⇒ Object
Returns the value of attribute log_formatter_compact_assets.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def log_formatter_compact_assets @log_formatter_compact_assets end |
#log_formatter_enabled ⇒ Object
Returns the value of attribute log_formatter_enabled.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def log_formatter_enabled @log_formatter_enabled end |
#log_formatter_hide_assets ⇒ Object
Returns the value of attribute log_formatter_hide_assets.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def log_formatter_hide_assets @log_formatter_hide_assets end |
#log_formatter_show_params ⇒ Object
Returns the value of attribute log_formatter_show_params.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def log_formatter_show_params @log_formatter_show_params end |
#logger ⇒ Object
Returns the value of attribute logger.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def logger @logger end |
#mode ⇒ Object
mode has a custom setter with validation
11 12 13 |
# File 'lib/brainzlab/configuration.rb', line 11 def mode @mode end |
#nerve_api_key ⇒ Object
Returns the value of attribute nerve_api_key.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def nerve_api_key @nerve_api_key end |
#nerve_auto_provision ⇒ Object
Returns the value of attribute nerve_auto_provision.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def nerve_auto_provision @nerve_auto_provision end |
#nerve_enabled ⇒ Object
Returns the value of attribute nerve_enabled.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def nerve_enabled @nerve_enabled end |
#nerve_master_key ⇒ Object
Returns the value of attribute nerve_master_key.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def nerve_master_key @nerve_master_key end |
#nerve_url ⇒ Object
Returns the value of attribute nerve_url.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def nerve_url @nerve_url end |
#on_error ⇒ Object
Returns the value of attribute on_error.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def on_error @on_error end |
#on_send ⇒ Object
Returns the value of attribute on_send.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def on_send @on_send end |
#pulse_api_key ⇒ Object
Returns the value of attribute pulse_api_key.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def pulse_api_key @pulse_api_key end |
#pulse_auto_provision ⇒ Object
Returns the value of attribute pulse_auto_provision.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def pulse_auto_provision @pulse_auto_provision end |
#pulse_buffer_size ⇒ Object
Returns the value of attribute pulse_buffer_size.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def pulse_buffer_size @pulse_buffer_size end |
#pulse_enabled ⇒ Object
Returns the value of attribute pulse_enabled.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def pulse_enabled @pulse_enabled end |
#pulse_excluded_paths ⇒ Object
Returns the value of attribute pulse_excluded_paths.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def pulse_excluded_paths @pulse_excluded_paths end |
#pulse_flush_interval ⇒ Object
Returns the value of attribute pulse_flush_interval.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def pulse_flush_interval @pulse_flush_interval end |
#pulse_master_key ⇒ Object
Returns the value of attribute pulse_master_key.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def pulse_master_key @pulse_master_key end |
#pulse_sample_rate ⇒ Object
Returns the value of attribute pulse_sample_rate.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def pulse_sample_rate @pulse_sample_rate end |
#pulse_url ⇒ Object
Returns the value of attribute pulse_url.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def pulse_url @pulse_url end |
#rails_instrumentation_handled_externally ⇒ Object
Returns the value of attribute rails_instrumentation_handled_externally.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def rails_instrumentation_handled_externally @rails_instrumentation_handled_externally end |
#recall_auto_provision ⇒ Object
Returns the value of attribute recall_auto_provision.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def recall_auto_provision @recall_auto_provision end |
#recall_buffer_size ⇒ Object
Returns the value of attribute recall_buffer_size.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def recall_buffer_size @recall_buffer_size end |
#recall_enabled ⇒ Object
Returns the value of attribute recall_enabled.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def recall_enabled @recall_enabled end |
#recall_flush_interval ⇒ Object
Returns the value of attribute recall_flush_interval.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def recall_flush_interval @recall_flush_interval end |
#recall_master_key ⇒ Object
Returns the value of attribute recall_master_key.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def recall_master_key @recall_master_key end |
#recall_min_level ⇒ Object
recall_min_level has a custom setter with validation
8 9 10 |
# File 'lib/brainzlab/configuration.rb', line 8 def recall_min_level @recall_min_level end |
#recall_url ⇒ Object
Returns the value of attribute recall_url.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def recall_url @recall_url end |
#redis_ignore_commands ⇒ Object
Returns the value of attribute redis_ignore_commands.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def redis_ignore_commands @redis_ignore_commands end |
#reflex_api_key ⇒ Object
Returns the value of attribute reflex_api_key.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def reflex_api_key @reflex_api_key end |
#reflex_auto_provision ⇒ Object
Returns the value of attribute reflex_auto_provision.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def reflex_auto_provision @reflex_auto_provision end |
#reflex_before_send ⇒ Object
Returns the value of attribute reflex_before_send.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def reflex_before_send @reflex_before_send end |
#reflex_enabled ⇒ Object
Returns the value of attribute reflex_enabled.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def reflex_enabled @reflex_enabled end |
#reflex_excluded_exceptions ⇒ Object
Returns the value of attribute reflex_excluded_exceptions.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def reflex_excluded_exceptions @reflex_excluded_exceptions end |
#reflex_fingerprint ⇒ Object
Returns the value of attribute reflex_fingerprint.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def reflex_fingerprint @reflex_fingerprint end |
#reflex_master_key ⇒ Object
Returns the value of attribute reflex_master_key.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def reflex_master_key @reflex_master_key end |
#reflex_sample_rate ⇒ Object
Returns the value of attribute reflex_sample_rate.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def reflex_sample_rate @reflex_sample_rate end |
#reflex_url ⇒ Object
Returns the value of attribute reflex_url.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def reflex_url @reflex_url end |
#scrub_fields ⇒ Object
Returns the value of attribute scrub_fields.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def scrub_fields @scrub_fields end |
#secret_key ⇒ Object
Returns the value of attribute secret_key.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def secret_key @secret_key end |
#sentinel_agent_key ⇒ Object
Returns the value of attribute sentinel_agent_key.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def sentinel_agent_key @sentinel_agent_key end |
#sentinel_api_key ⇒ Object
Returns the value of attribute sentinel_api_key.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def sentinel_api_key @sentinel_api_key end |
#sentinel_auto_provision ⇒ Object
Returns the value of attribute sentinel_auto_provision.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def sentinel_auto_provision @sentinel_auto_provision end |
#sentinel_enabled ⇒ Object
Returns the value of attribute sentinel_enabled.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def sentinel_enabled @sentinel_enabled end |
#sentinel_master_key ⇒ Object
Returns the value of attribute sentinel_master_key.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def sentinel_master_key @sentinel_master_key end |
#sentinel_url ⇒ Object
Returns the value of attribute sentinel_url.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def sentinel_url @sentinel_url end |
#service ⇒ Object
Returns the value of attribute service.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def service @service end |
#signal_api_key ⇒ Object
Returns the value of attribute signal_api_key.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def signal_api_key @signal_api_key end |
#signal_auto_provision ⇒ Object
Returns the value of attribute signal_auto_provision.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def signal_auto_provision @signal_auto_provision end |
#signal_enabled ⇒ Object
Returns the value of attribute signal_enabled.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def signal_enabled @signal_enabled end |
#signal_ingest_key ⇒ Object
Returns the value of attribute signal_ingest_key.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def signal_ingest_key @signal_ingest_key end |
#signal_master_key ⇒ Object
Returns the value of attribute signal_master_key.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def signal_master_key @signal_master_key end |
#signal_url ⇒ Object
Returns the value of attribute signal_url.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def signal_url @signal_url end |
#synapse_api_key ⇒ Object
Returns the value of attribute synapse_api_key.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def synapse_api_key @synapse_api_key end |
#synapse_auto_provision ⇒ Object
Returns the value of attribute synapse_auto_provision.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def synapse_auto_provision @synapse_auto_provision end |
#synapse_enabled ⇒ Object
Returns the value of attribute synapse_enabled.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def synapse_enabled @synapse_enabled end |
#synapse_master_key ⇒ Object
Returns the value of attribute synapse_master_key.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def synapse_master_key @synapse_master_key end |
#synapse_url ⇒ Object
Returns the value of attribute synapse_url.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def synapse_url @synapse_url end |
#vault_api_key ⇒ Object
Returns the value of attribute vault_api_key.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def vault_api_key @vault_api_key end |
#vault_auto_load ⇒ Object
Returns the value of attribute vault_auto_load.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def vault_auto_load @vault_auto_load end |
#vault_auto_provision ⇒ Object
Returns the value of attribute vault_auto_provision.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def vault_auto_provision @vault_auto_provision end |
#vault_cache_enabled ⇒ Object
Returns the value of attribute vault_cache_enabled.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def vault_cache_enabled @vault_cache_enabled end |
#vault_cache_ttl ⇒ Object
Returns the value of attribute vault_cache_ttl.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def vault_cache_ttl @vault_cache_ttl end |
#vault_enabled ⇒ Object
Returns the value of attribute vault_enabled.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def vault_enabled @vault_enabled end |
#vault_load_provider_keys ⇒ Object
Returns the value of attribute vault_load_provider_keys.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def vault_load_provider_keys @vault_load_provider_keys end |
#vault_master_key ⇒ Object
Returns the value of attribute vault_master_key.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def vault_master_key @vault_master_key end |
#vault_url ⇒ Object
Returns the value of attribute vault_url.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def vault_url @vault_url end |
#vision_api_key ⇒ Object
Returns the value of attribute vision_api_key.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def vision_api_key @vision_api_key end |
#vision_auto_provision ⇒ Object
Returns the value of attribute vision_auto_provision.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def vision_auto_provision @vision_auto_provision end |
#vision_default_browser_provider ⇒ Object
Returns the value of attribute vision_default_browser_provider.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def vision_default_browser_provider @vision_default_browser_provider end |
#vision_default_model ⇒ Object
Returns the value of attribute vision_default_model.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def vision_default_model @vision_default_model end |
#vision_enabled ⇒ Object
Returns the value of attribute vision_enabled.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def vision_enabled @vision_enabled end |
#vision_ingest_key ⇒ Object
Returns the value of attribute vision_ingest_key.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def vision_ingest_key @vision_ingest_key end |
#vision_master_key ⇒ Object
Returns the value of attribute vision_master_key.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def vision_master_key @vision_master_key end |
#vision_url ⇒ Object
Returns the value of attribute vision_url.
13 14 15 |
# File 'lib/brainzlab/configuration.rb', line 13 def vision_url @vision_url end |
Instance Method Details
#beacon_auth_key ⇒ Object
495 496 497 |
# File 'lib/brainzlab/configuration.rb', line 495 def beacon_auth_key beacon_api_key || secret_key end |
#beacon_valid? ⇒ Boolean
490 491 492 493 |
# File 'lib/brainzlab/configuration.rb', line 490 def beacon_valid? key = beacon_api_key || secret_key !key.nil? && !key.empty? end |
#cortex_auth_key ⇒ Object
513 514 515 |
# File 'lib/brainzlab/configuration.rb', line 513 def cortex_auth_key cortex_api_key || secret_key end |
#cortex_valid? ⇒ Boolean
508 509 510 511 |
# File 'lib/brainzlab/configuration.rb', line 508 def cortex_valid? key = cortex_api_key || secret_key !key.nil? && !key.empty? end |
#debug? ⇒ Boolean
544 545 546 |
# File 'lib/brainzlab/configuration.rb', line 544 def debug? @debug == true end |
#debug_log(message) ⇒ Object
618 619 620 621 622 623 624 625 626 627 |
# File 'lib/brainzlab/configuration.rb', line 618 def debug_log() return unless debug? = "[BrainzLab::Debug] #{}" if logger logger.debug() else warn() end end |
#dendrite_auth_key ⇒ Object
522 523 524 |
# File 'lib/brainzlab/configuration.rb', line 522 def dendrite_auth_key dendrite_api_key || secret_key end |
#dendrite_valid? ⇒ Boolean
517 518 519 520 |
# File 'lib/brainzlab/configuration.rb', line 517 def dendrite_valid? key = dendrite_api_key || secret_key !key.nil? && !key.empty? end |
#development_mode? ⇒ Boolean
420 421 422 |
# File 'lib/brainzlab/configuration.rb', line 420 def development_mode? @mode == :development end |
#enabled? ⇒ Boolean
432 433 434 |
# File 'lib/brainzlab/configuration.rb', line 432 def enabled? @enabled == true end |
#flux_auth_key ⇒ Object
459 460 461 |
# File 'lib/brainzlab/configuration.rb', line 459 def flux_auth_key flux_ingest_key || flux_api_key || secret_key end |
#flux_effectively_enabled? ⇒ Boolean
Check if flux is effectively enabled (considering self-tracking)
597 598 599 600 601 602 603 604 605 |
# File 'lib/brainzlab/configuration.rb', line 597 def flux_effectively_enabled? return false unless @enabled return false unless @flux_enabled return true unless @disable_self_tracking # Disable if this is the Flux service itself normalized_app_name = @app_name.to_s.downcase.strip normalized_app_name != 'flux' end |
#flux_valid? ⇒ Boolean
454 455 456 457 |
# File 'lib/brainzlab/configuration.rb', line 454 def flux_valid? key = flux_ingest_key || flux_api_key || secret_key !key.nil? && !key.empty? end |
#level_enabled?(level) ⇒ Boolean
424 425 426 |
# File 'lib/brainzlab/configuration.rb', line 424 def level_enabled?(level) LEVELS.index(level.to_sym) >= LEVELS.index(@recall_min_level) end |
#nerve_auth_key ⇒ Object
504 505 506 |
# File 'lib/brainzlab/configuration.rb', line 504 def nerve_auth_key nerve_api_key || secret_key end |
#nerve_valid? ⇒ Boolean
499 500 501 502 |
# File 'lib/brainzlab/configuration.rb', line 499 def nerve_valid? key = nerve_api_key || secret_key !key.nil? && !key.empty? end |
#pulse_auth_key ⇒ Object
450 451 452 |
# File 'lib/brainzlab/configuration.rb', line 450 def pulse_auth_key pulse_api_key || secret_key end |
#pulse_effectively_enabled? ⇒ Boolean
Check if pulse is effectively enabled (considering self-tracking)
586 587 588 589 590 591 592 593 594 |
# File 'lib/brainzlab/configuration.rb', line 586 def pulse_effectively_enabled? return false unless @enabled return false unless @pulse_enabled return true unless @disable_self_tracking # Disable if this is the Pulse service itself normalized_app_name = @app_name.to_s.downcase.strip normalized_app_name != 'pulse' end |
#pulse_valid? ⇒ Boolean
445 446 447 448 |
# File 'lib/brainzlab/configuration.rb', line 445 def pulse_valid? key = pulse_api_key || secret_key !key.nil? && !key.empty? end |
#recall_effectively_enabled? ⇒ Boolean
Check if recall is effectively enabled (considering self-tracking)
564 565 566 567 568 569 570 571 572 |
# File 'lib/brainzlab/configuration.rb', line 564 def recall_effectively_enabled? return false unless @enabled return false unless @recall_enabled return true unless @disable_self_tracking # Disable if this is the Recall service itself normalized_app_name = @app_name.to_s.downcase.strip normalized_app_name != 'recall' end |
#reflex_auth_key ⇒ Object
441 442 443 |
# File 'lib/brainzlab/configuration.rb', line 441 def reflex_auth_key reflex_api_key || secret_key end |
#reflex_effectively_enabled? ⇒ Boolean
Check if reflex is effectively enabled (considering self-tracking)
575 576 577 578 579 580 581 582 583 |
# File 'lib/brainzlab/configuration.rb', line 575 def reflex_effectively_enabled? return false unless @enabled return false unless @reflex_enabled return true unless @disable_self_tracking # Disable if this is the Reflex service itself normalized_app_name = @app_name.to_s.downcase.strip normalized_app_name != 'reflex' end |
#reflex_valid? ⇒ Boolean
436 437 438 439 |
# File 'lib/brainzlab/configuration.rb', line 436 def reflex_valid? key = reflex_api_key || secret_key !key.nil? && !key.empty? end |
#sdk_service_hosts ⇒ Object
Returns hostnames of all configured SDK service URLs Used by Net::HTTP instrumentation to skip tracking SDK’s own HTTP calls
550 551 552 553 554 555 556 557 558 559 560 561 |
# File 'lib/brainzlab/configuration.rb', line 550 def sdk_service_hosts @sdk_service_hosts ||= begin urls = [ @recall_url, @reflex_url, @pulse_url, @flux_url, @signal_url, @vault_url, @vision_url, @cortex_url, @beacon_url, @nerve_url, @dendrite_url, @sentinel_url, @synapse_url ].compact urls.filter_map { |url| URI.parse(url).host rescue nil }.uniq end end |
#sentinel_auth_key ⇒ Object
531 532 533 |
# File 'lib/brainzlab/configuration.rb', line 531 def sentinel_auth_key sentinel_api_key || secret_key end |
#sentinel_valid? ⇒ Boolean
526 527 528 529 |
# File 'lib/brainzlab/configuration.rb', line 526 def sentinel_valid? key = sentinel_api_key || secret_key !key.nil? && !key.empty? end |
#signal_auth_key ⇒ Object
468 469 470 |
# File 'lib/brainzlab/configuration.rb', line 468 def signal_auth_key signal_ingest_key || signal_api_key || secret_key end |
#signal_effectively_enabled? ⇒ Boolean
Check if signal is effectively enabled (considering self-tracking)
608 609 610 611 612 613 614 615 616 |
# File 'lib/brainzlab/configuration.rb', line 608 def signal_effectively_enabled? return false unless @enabled return false unless @signal_enabled return true unless @disable_self_tracking # Disable if this is the Signal service itself normalized_app_name = @app_name.to_s.downcase.strip normalized_app_name != 'signal' end |
#signal_valid? ⇒ Boolean
463 464 465 466 |
# File 'lib/brainzlab/configuration.rb', line 463 def signal_valid? key = signal_ingest_key || signal_api_key || secret_key !key.nil? && !key.empty? end |
#synapse_auth_key ⇒ Object
540 541 542 |
# File 'lib/brainzlab/configuration.rb', line 540 def synapse_auth_key synapse_api_key || secret_key end |
#synapse_valid? ⇒ Boolean
535 536 537 538 |
# File 'lib/brainzlab/configuration.rb', line 535 def synapse_valid? key = synapse_api_key || secret_key !key.nil? && !key.empty? end |
#valid? ⇒ Boolean
428 429 430 |
# File 'lib/brainzlab/configuration.rb', line 428 def valid? @enabled && !@secret_key.nil? && !@secret_key.empty? end |
#vault_auth_key ⇒ Object
477 478 479 |
# File 'lib/brainzlab/configuration.rb', line 477 def vault_auth_key vault_api_key || secret_key end |
#vault_valid? ⇒ Boolean
472 473 474 475 |
# File 'lib/brainzlab/configuration.rb', line 472 def vault_valid? key = vault_api_key || secret_key !key.nil? && !key.empty? end |
#vision_auth_key ⇒ Object
486 487 488 |
# File 'lib/brainzlab/configuration.rb', line 486 def vision_auth_key vision_ingest_key || vision_api_key || secret_key end |
#vision_valid? ⇒ Boolean
481 482 483 484 |
# File 'lib/brainzlab/configuration.rb', line 481 def vision_valid? key = vision_ingest_key || vision_api_key || secret_key !key.nil? && !key.empty? end |