Sha256: 94a1736001d86d3e5324a1f6944afb74423b1f8a2d1f717a3df7a9e9b72ed446

Contents?: true

Size: 872 Bytes

Versions: 10

Compression:

Stored size: 872 Bytes

Contents

# 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'

  STANDARD_OUT = 'STDOUT'

  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]
  MAX_RETRY_PERIOD = 300
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
newrelic_rpm-9.5.0 lib/new_relic/constants.rb
newrelic_rpm-9.4.2 lib/new_relic/constants.rb
newrelic_rpm-9.4.1 lib/new_relic/constants.rb
newrelic_rpm-9.4.0 lib/new_relic/constants.rb
newrelic_rpm-9.3.1 lib/new_relic/constants.rb
newrelic_rpm-9.3.0 lib/new_relic/constants.rb
newrelic_rpm-9.2.2 lib/new_relic/constants.rb
newrelic_rpm-9.2.1 lib/new_relic/constants.rb
newrelic_rpm-9.2.0 lib/new_relic/constants.rb
newrelic_rpm-9.1.0 lib/new_relic/constants.rb