Sha256: 98ec7089b5ce4475e4fdd7936f7f8e3f132f837b73ffcef7934ede040c6586e0

Contents?: true

Size: 471 Bytes

Versions: 2

Compression:

Stored size: 471 Bytes

Contents

# encoding: utf-8
# This file is distributed under New Relic's license terms.
# See https://github.com/newrelic/newrelic-ruby-agent/blob/main/LICENSE for complete details.
# frozen_string_literal: true

require 'new_relic/agent/heap'

module NewRelic
  module Agent
    class TimestampSampledBuffer < PrioritySampledBuffer
      TIMESTAMP_KEY = "timestamp".freeze

      private

      def priority_for(event)
        -event[0][TIMESTAMP_KEY]
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
newrelic_rpm-8.10.1 lib/new_relic/agent/timestamp_sampled_buffer.rb
newrelic_rpm-8.10.0 lib/new_relic/agent/timestamp_sampled_buffer.rb