Sha256: a26e5606016323d8054eba581679e99133c71d122c774c1483c18954e0255d59
Contents?: true
Size: 666 Bytes
Versions: 1
Compression:
Stored size: 666 Bytes
Contents
require 'apollo/optics/proto/reports_pb' module OpticsAgent::Reporting def generate_report_header # XXX: fill out Apollo::Optics::Proto::ReportHeader.new({ agent_version: '0' }) end def generate_timestamp(time) Apollo::Optics::Proto::Timestamp.new({ seconds: time.to_i, nanos: time.to_i % 1 * 1e9 }); end # XXX: implement def client_info(rack_env) { client_name: 'none', client_version: 'none', client_address: '::1' } end def add_latency(counts, start_time, end_time) micros = (end_time - start_time) * 1e6 bucket = latency_bucket(micros) counts[bucket] += 1 end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
optics-agent-0.1.0 | lib/optics-agent/reporting/helpers.rb |