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

Version Path
rails_performance-1.2.3 lib/rails_performance/models/trace_record.rb
rails_performance-1.2.2 lib/rails_performance/models/trace_record.rb
rails_performance-1.2.1 lib/rails_performance/models/trace_record.rb
rails_performance-1.2.0 lib/rails_performance/models/trace_record.rb
rails_performance-1.2.0.alpha5 lib/rails_performance/models/trace_record.rb
rails_performance-1.2.0.alpha4 lib/rails_performance/models/trace_record.rb
rails_performance-1.2.0.alpha3 lib/rails_performance/models/trace_record.rb
rails_performance-1.2.0.alpha2 lib/rails_performance/models/trace_record.rb
rails_performance-1.2.0.alpha1 lib/rails_performance/models/trace_record.rb
rails_performance-1.1.0 lib/rails_performance/models/trace_record.rb
rails_performance-1.0.5.3 lib/rails_performance/models/trace_record.rb