Module: Lens
- Defined in:
- lib/lens.rb,
lib/lens/gc.rb,
lib/lens/event.rb,
lib/lens/trace.rb,
lib/lens/sender.rb,
lib/lens/worker.rb,
lib/lens/railtie.rb,
lib/lens/version.rb,
lib/lens/exceptions.rb,
lib/lens/compression.rb,
lib/lens/configuration.rb,
lib/lens/event_formatter.rb,
lib/lens/allocations_data.rb
Defined Under Namespace
Modules: Compression
Classes: AllocationsData, Configuration, ConfigurationError, Event, EventFormatter, GC, Railtie, Sender, Trace, Worker
Constant Summary
collapse
- VERSION =
"0.0.10"
Class Attribute Summary collapse
Class Method Summary
collapse
Class Attribute Details
.configuration ⇒ Object
20
21
22
|
# File 'lib/lens.rb', line 20
def configuration
@configuration ||= Configuration.new
end
|
.sender ⇒ Object
Returns the value of attribute sender.
10
11
12
|
# File 'lib/lens.rb', line 10
def sender
@sender
end
|
Class Method Details
13
14
15
16
17
18
|
# File 'lib/lens.rb', line 13
def configure
yield(configuration)
self.sender = Sender.new(configuration)
self
end
|
.start ⇒ Object
24
25
26
27
28
|
# File 'lib/lens.rb', line 24
def start
raise ConfigurationError, 'application key required' unless configuration.app_key
Worker.start(configuration)
end
|
.stop ⇒ Object
30
31
32
|
# File 'lib/lens.rb', line 30
def stop
Worker.stop
end
|