Skip to content

Commit c8617cf

Browse files
committed
remove scope file
1 parent e0b50cc commit c8617cf

File tree

4 files changed

+0
-78
lines changed

4 files changed

+0
-78
lines changed

lib/solarwinds_apm/api/transaction_name.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,6 @@ def set_transaction_name(custom_name = nil)
4343

4444
status = true
4545
if ENV.fetch('SW_APM_ENABLED', 'true') == 'false'
46-
# check noop mode for otel ruby
47-
# || SolarWindsAPM::Context.toString == '99-00000000000000000000000000000000-0000000000000000-00'
48-
# library disabled or noop, just log and skip work.
49-
# TODO: can we have a single indicator that the API is in noop mode?
5046
SolarWindsAPM.logger.debug { "[#{name}/#{__method__}] SolarWindsAPM is in disabled or noop mode." }
5147
elsif custom_name.nil? || custom_name.empty?
5248
SolarWindsAPM.logger.warn do

lib/solarwinds_apm/opentelemetry/otlp_processor.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ def on_start(span, parent_context)
3434
@txn_manager&.set_root_context_h(span.context.hex_trace_id, "#{span.context.hex_span_id}-#{trace_flags}")
3535
span.add_attributes(span_attributes(span))
3636
span.add_attributes({ SW_IS_ENTRY_SPAN => true })
37-
scope_attribute = SolarWindsAPM::InstrumentationScope.gather_instrumented_framework(span)
38-
span.add_attributes(scope_attribute) unless scope_attribute.nil?
3937
rescue StandardError => e
4038
SolarWindsAPM.logger.info { "[#{self.class}/#{__method__}] processor on_start error: #{e.message}" }
4139
end

lib/solarwinds_apm/sampling.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
require_relative 'sampling/token_bucket'
1919
require_relative 'sampling/trace_options'
2020
require_relative 'sampling/metrics'
21-
require_relative 'sampling/instrumentation_scope'
2221

2322
# HttpSampler/JsonSampler < Sampler < OboeSampler
2423
require_relative 'sampling/oboe_sampler'

lib/solarwinds_apm/sampling/instrumentation_scope.rb

Lines changed: 0 additions & 71 deletions
This file was deleted.

0 commit comments

Comments
 (0)