Skip to content

Commit

Permalink
fix failing test, function signiture changed
Browse files Browse the repository at this point in the history
  • Loading branch information
mabdinur committed May 3, 2024
1 parent 5e7e50d commit 2370fe7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/datadog/opentelemetry/sdk/span_processor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def start_datadog_span(span)
unless span.links.nil?
datadog_span.links = span.links.map do |link|
Datadog::Tracing::SpanLink.new(
digest: Datadog::Tracing::TraceDigest.new(
Datadog::Tracing::TraceDigest.new(
trace_id: link.span_context.hex_trace_id.to_i(16),
span_id: link.span_context.hex_span_id.to_i(16),
trace_flags: (link.span_context.trace_flags&.sampled? ? 1 : 0),
Expand Down
2 changes: 1 addition & 1 deletion spec/datadog/tracing/span_operation_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@
context 'that is an Array' do
let(:span_links) do
[Datadog::Tracing::SpanLink.new(
digest: Datadog::Tracing::TraceDigest.new(trace_id: 1, span_id: 2),
Datadog::Tracing::TraceDigest.new(trace_id: 1, span_id: 2),
attributes: { "link.name": 'moon' }
)]
end
Expand Down

0 comments on commit 2370fe7

Please sign in to comment.