Skip to content

Commit

Permalink
Merge pull request #1408 from esquith/remove-all-unused-constants
Browse files Browse the repository at this point in the history
Remove orphaned constants
  • Loading branch information
fallwith authored Sep 13, 2022
2 parents 33eabcd + 1e77f0c commit b24521c
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 10 deletions.
3 changes: 0 additions & 3 deletions lib/new_relic/agent/datastores/metric_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ module Agent
module Datastores
module MetricHelper
ROLLUP_METRIC = "Datastore/all".freeze
WEB_ROLLUP_METRIC = "Datastore/allWeb".freeze
OTHER_ROLLUP_METRIC = "Datastore/allOther".freeze
DEFAULT_PRODUCT_NAME = "ActiveRecord".freeze
OTHER = "Other".freeze

ALL = "all".freeze
Expand Down
2 changes: 0 additions & 2 deletions lib/new_relic/agent/datastores/mongo/metric_translator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,6 @@ def self.operation_and_collection_for(name, payload)
nil
end

MONGO_PRODUCT_NAME = "MongoDB".freeze

def self.collection_in_selector?(payload)
payload[:collection] == '$cmd' && payload[:selector]
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ class DistributedTracePayload

VERSION = [0, 1].freeze
PARENT_TYPE = "App"
POUND = '#'

# Key names for serialization
VERSION_KEY = 'v'
Expand Down
1 change: 0 additions & 1 deletion lib/new_relic/agent/instrumentation/queue_time.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ module QueueTime
REQUEST_START_HEADER = 'HTTP_X_REQUEST_START'.freeze
QUEUE_START_HEADER = 'HTTP_X_QUEUE_START'.freeze
MIDDLEWARE_START_HEADER = 'HTTP_X_MIDDLEWARE_START'.freeze
ALL_QUEUE_METRIC = 'WebFrontend/QueueTime'.freeze
# any timestamps before this are thrown out and the parser
# will try again with a larger unit (2000/1/1 UTC)
EARLIEST_ACCEPTABLE_TIME = Time.at(946684800).to_f
Expand Down
1 change: 0 additions & 1 deletion lib/new_relic/agent/span_event_primitive.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ module SpanEventPrimitive
TRACE_ID_KEY = 'traceId'
GUID_KEY = 'guid'
PARENT_ID_KEY = 'parentId'
GRANDPARENT_ID_KEY = 'grandparentId'
TRANSACTION_ID_KEY = 'transactionId'
SAMPLED_KEY = 'sampled'
PRIORITY_KEY = 'priority'
Expand Down
1 change: 0 additions & 1 deletion lib/new_relic/agent/transaction.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ class Transaction
ACTION_CABLE_PREFIX = "#{CONTROLLER_PREFIX}ActionCable/"

WEB_TRANSACTION_CATEGORIES = [:web, :controller, :uri, :rack, :sinatra, :grape, :middleware, :action_cable].freeze
TRANSACTION_NAMING_SOURCES = [:child, :api].freeze

MIDDLEWARE_SUMMARY_METRICS = ["Middleware/all"].freeze
WEB_SUMMARY_METRIC = "HttpDispatcher"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ class TransactionSampleBuffer
attr_reader :samples

SINGLE_BUFFER_MAX = 20
NO_SAMPLES = NewRelic::EMPTY_ARRAY

def initialize
@samples = []
Expand Down

0 comments on commit b24521c

Please sign in to comment.