diff --git a/lib/new_relic/agent/datastores/metric_helper.rb b/lib/new_relic/agent/datastores/metric_helper.rb index 5a8aca85a1..8a93cb78c3 100644 --- a/lib/new_relic/agent/datastores/metric_helper.rb +++ b/lib/new_relic/agent/datastores/metric_helper.rb @@ -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 diff --git a/lib/new_relic/agent/datastores/mongo/metric_translator.rb b/lib/new_relic/agent/datastores/mongo/metric_translator.rb index 364e5829f9..077b3cfb8a 100644 --- a/lib/new_relic/agent/datastores/mongo/metric_translator.rb +++ b/lib/new_relic/agent/datastores/mongo/metric_translator.rb @@ -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 diff --git a/lib/new_relic/agent/distributed_tracing/distributed_trace_payload.rb b/lib/new_relic/agent/distributed_tracing/distributed_trace_payload.rb index af97a2266b..c4fbb75701 100644 --- a/lib/new_relic/agent/distributed_tracing/distributed_trace_payload.rb +++ b/lib/new_relic/agent/distributed_tracing/distributed_trace_payload.rb @@ -19,7 +19,6 @@ class DistributedTracePayload VERSION = [0, 1].freeze PARENT_TYPE = "App" - POUND = '#' # Key names for serialization VERSION_KEY = 'v' diff --git a/lib/new_relic/agent/instrumentation/queue_time.rb b/lib/new_relic/agent/instrumentation/queue_time.rb index 841b335ed1..ecda87b40d 100644 --- a/lib/new_relic/agent/instrumentation/queue_time.rb +++ b/lib/new_relic/agent/instrumentation/queue_time.rb @@ -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 diff --git a/lib/new_relic/agent/span_event_primitive.rb b/lib/new_relic/agent/span_event_primitive.rb index 0ba68fc22a..be7bb2bf73 100644 --- a/lib/new_relic/agent/span_event_primitive.rb +++ b/lib/new_relic/agent/span_event_primitive.rb @@ -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' diff --git a/lib/new_relic/agent/transaction.rb b/lib/new_relic/agent/transaction.rb index 08b63cbe4c..f4a3999071 100644 --- a/lib/new_relic/agent/transaction.rb +++ b/lib/new_relic/agent/transaction.rb @@ -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" diff --git a/lib/new_relic/agent/transaction/transaction_sample_buffer.rb b/lib/new_relic/agent/transaction/transaction_sample_buffer.rb index 55f4b71e28..8d256d240a 100644 --- a/lib/new_relic/agent/transaction/transaction_sample_buffer.rb +++ b/lib/new_relic/agent/transaction/transaction_sample_buffer.rb @@ -10,7 +10,6 @@ class TransactionSampleBuffer attr_reader :samples SINGLE_BUFFER_MAX = 20 - NO_SAMPLES = NewRelic::EMPTY_ARRAY def initialize @samples = []