Skip to content

Commit

Permalink
creates mock spanoperation instead of full fledged span
Browse files Browse the repository at this point in the history
  • Loading branch information
zarirhamza committed Sep 13, 2023
1 parent 622fe56 commit 33d1a13
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions spec/datadog/tracing/contrib/propagation/sql_comment_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 33d1a13

Please sign in to comment.