File tree 5 files changed +6
-16
lines changed
test/multiverse/suites/hybrid_agent
5 files changed +6
-16
lines changed Original file line number Diff line number Diff line change 5
5
module NewRelic
6
6
module Agent
7
7
class OpenTelemetryHandler
8
- # TODO: should you be a singleton? should you be a module? do we need an instance? can we just call a setup method or something?
9
8
def initialize
10
9
# no-op without OpenTelemetry API & config
11
- return unless defined? ( OpenTelemetry ) && NewRelic ::Agent . config [ :'feature_flag.opentelemetry_bridge' ]
10
+ return unless defined? ( OpenTelemetry ) &&
11
+ NewRelic ::Agent . config [ :'feature_flag.opentelemetry_bridge' ]
12
12
13
13
OpenTelemetryHandler . install_bridge
14
14
end
@@ -19,7 +19,6 @@ def self.install_bridge
19
19
require 'opentelemetry' # requires the opentelemetry-api gem
20
20
require_relative 'opentelemetry/trace'
21
21
22
- # TODO: Turn off New Relic instrumentation
23
22
::OpenTelemetry . tracer_provider = NewRelic ::Agent ::OpenTelemetry ::Trace ::TracerProvider . new
24
23
end
25
24
end
Original file line number Diff line number Diff line change @@ -951,11 +951,6 @@ def ignore_trace?
951
951
@ignore_trace
952
952
end
953
953
954
- # TODO: THIS IS FOR OTEL AND SHOULD NOT STAY HEERE
955
- def set_attribute ( key , value )
956
- current_segment &.set_attribute ( key , value )
957
- end
958
-
959
954
private
960
955
961
956
def process_cpu
Original file line number Diff line number Diff line change @@ -46,12 +46,6 @@ def add_custom_attributes(p)
46
46
attributes . merge_custom_attributes ( p )
47
47
end
48
48
49
- # TODO: THIS IS AN OTEL OVERRIDE
50
- # IT SHOULD NOT LIVE HERE
51
- def set_attribute ( key , value )
52
- add_custom_attributes ( { key => value } )
53
- end
54
-
55
49
def self . finish ( segment )
56
50
return unless segment
57
51
Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ Example:
49
49
def focus_tests
50
50
%w[does_not_create_segment_without_a_transaction]
51
51
end
52
+ ```
52
53
53
54
``` output
54
55
$ bermq hybrid_agent
Original file line number Diff line number Diff line change @@ -27,10 +27,11 @@ def teardown
27
27
# It looks for the snake cased version of the testDescription field in the JSON
28
28
# Ex: %w[does_not_create_segment_without_a_transaction] would only run
29
29
# `"testDescription": "Does not create segment without a transaction"`
30
- # Using this to add tests individually until the full suite can be run on the CI
30
+ #
31
+ # Now that we're starting to implement, use this to add tests individually
32
+ # until the full suite can be run on the CI
31
33
def focus_tests
32
34
%w[ creates_opentelemetry_segment_in_a_transaction ]
33
- # []
34
35
end
35
36
36
37
test_cases = load_cross_agent_test ( 'hybrid_agent' )
You can’t perform that action at this time.
0 commit comments