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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add a section on correctly using tracer with minitest/autorun #144

Merged
merged 1 commit into from
Mar 19, 2024

Conversation

anmarchenko
Copy link
Member

@anmarchenko anmarchenko commented Mar 19, 2024

What does this PR do?
Adds a note to README about possible issues when using minitest/autorun

Motivation
minitest/autorun registers at_exit hook that runs the test suite. Datadog::Core also registers at_exit hook that stops Tracing worker. As hooks are executed in LIFO order, Datadog must be required first: that way test suite is being run and then Tracing is stopped. Otherwise, tests are being run without tracing enabled.

@anmarchenko anmarchenko merged commit 409ef05 into main Mar 19, 2024
27 checks passed
@anmarchenko anmarchenko deleted the anmarchenko/minitest_autorun_issue_in_readme branch March 19, 2024 12:27
@github-actions github-actions bot added this to the 0.9.0 milestone Mar 19, 2024
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