Class: Sentry::BenchmarkTransport
- Defined in:
- lib/sentry/benchmarks/benchmark_transport.rb
Constant Summary
Constants inherited from Transport
Transport::PROTOCOL_VERSION, Transport::USER_AGENT
Instance Attribute Summary collapse
-
#events ⇒ Object
Returns the value of attribute events.
Attributes inherited from Transport
Instance Method Summary collapse
-
#initialize ⇒ BenchmarkTransport
constructor
A new instance of BenchmarkTransport.
- #send_event(event) ⇒ Object
Methods inherited from Transport
#encode, #generate_auth_header, #send_data
Constructor Details
#initialize ⇒ BenchmarkTransport
Returns a new instance of BenchmarkTransport.
5 6 7 8 |
# File 'lib/sentry/benchmarks/benchmark_transport.rb', line 5 def initialize(*) super @events = [] end |
Instance Attribute Details
#events ⇒ Object
Returns the value of attribute events.
3 4 5 |
# File 'lib/sentry/benchmarks/benchmark_transport.rb', line 3 def events @events end |
Instance Method Details
#send_event(event) ⇒ Object
10 11 12 |
# File 'lib/sentry/benchmarks/benchmark_transport.rb', line 10 def send_event(event) @events << encode(event.to_hash) end |