Module: PlainApm

Defined in:
lib/plain_apm/extensions/context/rack.rb,
lib/plain_apm.rb,
lib/plain_apm/agent.rb,
lib/plain_apm/queue.rb,
lib/plain_apm/config.rb,
lib/plain_apm/helpers.rb,
lib/plain_apm/version.rb,
lib/plain_apm/transport.rb,
lib/plain_apm/hooks/manual.rb,
lib/plain_apm/deploy_tracking.rb,
lib/plain_apm/event_attributes.rb,
lib/plain_apm/hooks/active_job.rb,
lib/plain_apm/hooks/action_pack.rb,
lib/plain_apm/hooks/action_view.rb,
lib/plain_apm/extensions/context.rb,
lib/plain_apm/hooks/action_mailer.rb,
lib/plain_apm/hooks/active_record.rb,
lib/plain_apm/hooks/active_support.rb,
lib/plain_apm/hooks/error_reporter.rb,
lib/plain_apm/extensions/context/railtie.rb,
lib/plain_apm/extensions/exceptions/rack.rb,
lib/plain_apm/extensions/context/active_job.rb,
lib/plain_apm/extensions/context/middleware.rb,
lib/plain_apm/extensions/exceptions/railtie.rb,
lib/plain_apm/extensions/active_support/event.rb,
lib/plain_apm/hooks/active_support_subscriber.rb,
lib/plain_apm/extensions/active_support/railtie.rb,
ext/object_tracing/object_tracing.c

Overview

This code is inspired by request_store gem by Steve Klabnik:

github.com/steveklabnik/request_store/

See LICENSE.txt in the current directory for the license.

Defined Under Namespace

Modules: EventAttributes, Extensions, Helpers, Hooks, ObjectTracing Classes: Agent, Config, DeployTracking, Queue, Railtie, Transport

Constant Summary collapse

VERSION =
"0.10.2"

Class Method Summary collapse

Class Method Details

.agentObject



49
50
51
# File 'lib/plain_apm.rb', line 49

def self.agent
  @@agent ||= Agent.instance
end

.agent=(agent) ⇒ Object

Allow swapping out the Agent for a synchronous, in-memory implementation in the tests.



45
46
47
# File 'lib/plain_apm.rb', line 45

def self.agent=(agent)
  @@agent = agent
end