From 33d1a13ac16858b92bcaad7c80c1a5f3d06bd9b9 Mon Sep 17 00:00:00 2001 From: Zarir Hamza Date: Wed, 13 Sep 2023 15:08:06 -0400 Subject: [PATCH] creates mock spanoperation instead of full fledged span --- .../tracing/contrib/propagation/sql_comment_spec.rb | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/spec/datadog/tracing/contrib/propagation/sql_comment_spec.rb b/spec/datadog/tracing/contrib/propagation/sql_comment_spec.rb index 9e5382b8ddc..05b28269ca9 100644 --- a/spec/datadog/tracing/contrib/propagation/sql_comment_spec.rb +++ b/spec/datadog/tracing/contrib/propagation/sql_comment_spec.rb @@ -56,7 +56,12 @@ end end - let(:span_op) { Datadog::Tracing::Span.new('sample_span', service: 'database_service') } + let(:span_op) do + Datadog::Tracing::SpanOperation.new( + 'sample_span', + service: 'database_service' + ) + end let(:trace_op) do double( to_digest: Datadog::Tracing::TraceDigest.new( @@ -111,10 +116,10 @@ end let(:span_op) do - Datadog::Tracing::Span.new( + Datadog::Tracing::SpanOperation.new( 'sample_span', service: 'database_service', - meta: { 'peer.service' => 'sample_peer_service' } + tags: { 'peer.service' => 'sample_peer_service' } ) end let(:trace_op) do