Module: ActiveInsights

Defined in:
lib/active_insights.rb,
lib/active_insights/engine.rb,
lib/active_insights/version.rb,
app/models/active_insights/job.rb,
lib/active_insights/seeders/jobs.rb,
app/models/active_insights/record.rb,
app/models/active_insights/request.rb,
lib/active_insights/seeders/requests.rb,
app/controllers/active_insights/jpm_controller.rb,
app/controllers/active_insights/rpm_controller.rb,
app/helpers/active_insights/application_helper.rb,
app/controllers/active_insights/jobs_controller.rb,
app/controllers/active_insights/requests_controller.rb,
app/controllers/active_insights/application_controller.rb,
app/controllers/active_insights/jobs_p_values_controller.rb,
app/controllers/active_insights/jobs_latencies_controller.rb,
app/controllers/active_insights/requests_p_values_controller.rb

Defined Under Namespace

Modules: ApplicationHelper Classes: ApplicationController, Engine, InstallGenerator, Job, JobSeeder, JobsController, JobsLatenciesController, JobsPValuesController, JpmController, Record, Request, RequestSeeder, RequestsController, RequestsPValuesController, RpmController, UpdateGenerator

Constant Summary collapse

VERSION =
"1.3.1"

Class Method Summary collapse

Class Method Details

.enabled?Boolean

Returns:

  • (Boolean)


19
20
21
22
23
24
25
# File 'lib/active_insights.rb', line 19

def enabled?
  if enabled.nil?
    !Rails.env.development?
  else
    enabled.present?
  end
end

.ignored_endpoint?(payload) ⇒ Boolean

Returns:

  • (Boolean)


13
14
15
16
17
# File 'lib/active_insights.rb', line 13

def ignored_endpoint?(payload)
  ignored_endpoints.to_a.include?(
    "#{payload[:controller]}##{payload[:action]}"
  )
end