Sha256: c7cbeb00a23624b2e21504424ca015e380fa2b9b23b33b8574b19ec36a727462
Contents?: true
Size: 466 Bytes
Versions: 11
Compression:
Stored size: 466 Bytes
Contents
module RailsPerformance module Models class TraceRecord < BaseRecord attr_accessor :request_id, :value def initialize(request_id:, value:) @request_id = request_id @value = value end def save return if value.empty? Utils.save_to_redis("trace|#{request_id}|END|#{RailsPerformance::SCHEMA}", value, RailsPerformance.recent_requests_time_window.to_i) end end end end
Version data entries
11 entries across 11 versions & 1 rubygems