Skip to content

Commit

Permalink
use partial flush to send spans as they are finished within a session
Browse files Browse the repository at this point in the history
  • Loading branch information
anmarchenko committed Nov 24, 2023
1 parent b5c50eb commit b0537e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/datadog/ci/configuration/components.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def activate_ci!(settings)
settings.tracing.test_mode.enabled = true

# Choose user defined TraceFlush or default to CI TraceFlush
settings.tracing.test_mode.trace_flush = settings.ci.trace_flush || CI::TestVisibility::Flush::Finished.new
settings.tracing.test_mode.trace_flush = settings.ci.trace_flush || CI::TestVisibility::Flush::Partial.new

writer_options = settings.ci.writer_options
if test_visibility_transport
Expand Down
2 changes: 1 addition & 1 deletion spec/datadog/ci/configuration/components_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@

expect(settings.tracing.test_mode)
.to have_received(:trace_flush=)
.with(settings.ci.trace_flush || kind_of(Datadog::CI::TestVisibility::Flush::Finished))
.with(settings.ci.trace_flush || kind_of(Datadog::CI::TestVisibility::Flush::Partial))

expect(settings.tracing.test_mode).to have_received(:writer_options=) do |options|
expect(options[:transport]).to be_nil
Expand Down

0 comments on commit b0537e3

Please sign in to comment.