Skip to content

ddtrace/tracer: Fix TestSpanTracePushSeveral#2062

Merged
katiehockman merged 1 commit into
mainfrom
andrew.glaude/StartSpansTestFix
Jun 22, 2023
Merged

ddtrace/tracer: Fix TestSpanTracePushSeveral#2062
katiehockman merged 1 commit into
mainfrom
andrew.glaude/StartSpansTestFix

Conversation

@ajgajg1134

Copy link
Copy Markdown
Contributor

What does this PR do?

Start spans in this test instead of creating them manually.

Motivation

While working on partial flushing this test failed in weird and interesting ways because it calls finish on spans that never actually started. To avoid this, this PR actually calls start span instead of relying on the weird test function that allows creating a span directly.

Describe how to test/QA your changes

the test should continue to pass

Reviewer's Checklist

  • Changed code has unit tests for its functionality.
  • If this interacts with the agent in a new way, a system test has been added.

@ajgajg1134
ajgajg1134 requested a review from a team June 22, 2023 20:49
@pr-commenter

pr-commenter Bot commented Jun 22, 2023

Copy link
Copy Markdown

Benchmarks

Benchmark execution time: 2023-06-22 20:57:30

Comparing candidate commit 6b05834 in PR branch andrew.glaude/StartSpansTestFix with baseline commit d95fdb5 in branch main.

Found 0 performance improvements and 0 performance regressions! Performance is the same for 24 metrics, 0 unstable metrics.

@katiehockman
katiehockman merged commit d2cd391 into main Jun 22, 2023
@katiehockman
katiehockman deleted the andrew.glaude/StartSpansTestFix branch June 22, 2023 21:34
@ajgajg1134
ajgajg1134 restored the andrew.glaude/StartSpansTestFix branch June 23, 2023 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants