Sha256: 8ffc408e1d6302858d623812f1367ca86793e71b49d333f642a45a7cb385f389

Contents?: true

Size: 887 Bytes

Versions: 15

Compression:

Stored size: 887 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

module NewRelic
  PRIORITY_PRECISION = 6

  EMPTY_ARRAY = [].freeze
  EMPTY_HASH = {}.freeze
  EMPTY_STR = ""

  HTTP = "HTTP"
  HTTPS = "HTTPS"
  UNKNOWN = "Unknown"

  FORMAT_NON_RACK = 0
  FORMAT_RACK = 1

  NEWRELIC_KEY = "newrelic"
  CANDIDATE_NEWRELIC_KEYS = [
    NEWRELIC_KEY,
    'NEWRELIC',
    'NewRelic',
    'Newrelic'
  ].freeze

  TRACEPARENT_KEY = "traceparent"
  TRACESTATE_KEY = "tracestate"

  HTTP_TRACEPARENT_KEY = "HTTP_#{TRACEPARENT_KEY.upcase}"
  HTTP_TRACESTATE_KEY = "HTTP_#{TRACESTATE_KEY.upcase}"
  HTTP_NEWRELIC_KEY = "HTTP_#{NEWRELIC_KEY.upcase}"

  CONNECT_RETRY_PERIODS = [15, 15, 30, 60, 120, 300]
  MIN_RETRY_PERIOD = 15
  MAX_RETRY_PERIOD = 300
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
newrelic_rpm-8.10.1 lib/new_relic/constants.rb
newrelic_rpm-8.10.0 lib/new_relic/constants.rb
newrelic_rpm-8.9.0 lib/new_relic/constants.rb
newrelic_rpm-8.8.0 lib/new_relic/constants.rb
newrelic_rpm-8.7.0 lib/new_relic/constants.rb
newrelic_rpm-8.6.0 lib/new_relic/constants.rb
newrelic_rpm-8.5.0 lib/new_relic/constants.rb
newrelic_rpm-8.4.0 lib/new_relic/constants.rb
newrelic_rpm-8.3.0 lib/new_relic/constants.rb
newrelic_rpm-8.2.0 lib/new_relic/constants.rb
newrelic_rpm-8.1.0 lib/new_relic/constants.rb
newrelic_rpm-8.0.0 lib/new_relic/constants.rb
newrelic_rpm-6.13.1 lib/new_relic/constants.rb
newrelic_rpm-6.13.0 lib/new_relic/constants.rb
newrelic_rpm-6.12.0.367 lib/new_relic/constants.rb