Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

apps/golang: fix flush and enable span sampling tests #576

Merged
merged 8 commits into from
Oct 26, 2022

Conversation

katiehockman
Copy link
Contributor

@katiehockman katiehockman commented Oct 17, 2022

Description

Enable single span sampling tests for the Go Tracer after fixes in DataDog/dd-trace-go#1509.

Some bugs in the test setup needed to be fixed in order to accomplish this:

  • The Flush APIs needed to call Flush instead of Stop in the single span tests. For the tracestats tests, they needed to call Stop, so a new API endpoint was added to allow the tracestats to stop the tracer explicitly. See parametric/apps/golang: Flush() doesn't flush stats聽#596 for more details.
  • One of the tests was flaky at 1 second. Moving it to 2 appears to deflake this.

This PR updates the go.mod to point to DataDog/dd-trace-go#1509, which is now merged.

Check list

Your PR is not ready to be reviewed? Please save it as a draft 馃檹

  • Follows the style guidelines of this project (See how to easily lint the code)
  • CI is passing
  • There is at least one approval from code owners

Yes to all? Feel free to merge it whenever you want 鉂わ笍

Enable single span sampling tests for the Go Tracer after fixes in DataDog/dd-trace-go#1509.

Some bugs in the test setup needed to be fixed in order to accomplish this:
  - The Flush APIs needed to call Flush instead of Stop
  - One of the tests was flaky at 1 second. Moving it to 2 appears to deflake this.

This PR updates the go.mod to point to DataDog/dd-trace-go#1509, which is currently under review.
Copy link
Member

@Kyle-Verhoog Kyle-Verhoog left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

馃檶

@katiehockman katiehockman merged commit 9bd062b into main Oct 26, 2022
@katiehockman katiehockman deleted the katiehockman/golang-span-sampling branch October 26, 2022 14:10
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.

None yet

4 participants