diff --git a/test/traces/backend/open_telemetry.rb b/test/traces/backend/open_telemetry.rb index e1dcb1f..f9167a6 100644 --- a/test/traces/backend/open_telemetry.rb +++ b/test/traces/backend/open_telemetry.rb @@ -44,8 +44,6 @@ def my_span_and_context end it "can invoke trace wrapper" do - instance = MyClass.new - expect(Traces::Backend::OpenTelemetry::TRACER).to receive(:start_span).with_options(have_keys( attributes: be == {"argument" => 10} )) @@ -54,16 +52,12 @@ def my_span_and_context end it "can invoke trace wrapper without attributes" do - instance = MyClass.new - expect(Traces::Backend::OpenTelemetry::TRACER).to receive(:start_span) instance.my_method_without_attributes(10) end it "can invoke trace wrapper with exception" do - instance = MyClass.new - expect(Traces::Backend::OpenTelemetry::TRACER).to receive(:start_span) expect do