Class: Sentry::BenchmarkTransport

Inherits:
Transport show all
Defined in:
lib/sentry/benchmarks/benchmark_transport.rb

Constant Summary

Constants inherited from Transport

Transport::PROTOCOL_VERSION, Transport::USER_AGENT

Instance Attribute Summary collapse

Attributes inherited from Transport

#configuration

Instance Method Summary collapse

Methods inherited from Transport

#encode, #generate_auth_header, #send_data

Constructor Details

#initializeBenchmarkTransport

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

#eventsObject

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