File tree Expand file tree Collapse file tree 1 file changed +0
-6
lines changed Expand file tree Collapse file tree 1 file changed +0
-6
lines changed Original file line number Diff line number Diff line change @@ -44,8 +44,6 @@ def my_span_and_context
44
44
end
45
45
46
46
it "can invoke trace wrapper" do
47
- instance = MyClass . new
48
-
49
47
expect ( Traces ::Backend ::OpenTelemetry ::TRACER ) . to receive ( :start_span ) . with_options ( have_keys (
50
48
attributes : be == { "argument" => 10 }
51
49
) )
@@ -54,16 +52,12 @@ def my_span_and_context
54
52
end
55
53
56
54
it "can invoke trace wrapper without attributes" do
57
- instance = MyClass . new
58
-
59
55
expect ( Traces ::Backend ::OpenTelemetry ::TRACER ) . to receive ( :start_span )
60
56
61
57
instance . my_method_without_attributes ( 10 )
62
58
end
63
59
64
60
it "can invoke trace wrapper with exception" do
65
- instance = MyClass . new
66
-
67
61
expect ( Traces ::Backend ::OpenTelemetry ::TRACER ) . to receive ( :start_span )
68
62
69
63
expect do
You can’t perform that action at this time.
0 commit comments