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

Simplify TestTraces to reduce specificity #7785

Merged
merged 2 commits into from
Nov 4, 2024
Merged

Conversation

aarongable
Copy link
Contributor

TestTraces is designed to test whether our Open Telemetry tracing system is working: that spans are being output, that they have the appropriate parents, etc. It should not be testing whether Boulder took a specific path through its code -- that's the domain of package-specific unit tests. Simplify TestTraces to the point that it is asserting (nearly) the bare minimum about the set of operations Boulder performs.

(cherry picked from commit c9159be23b910a6674487a45a8a52942aa7245ae)
@aarongable aarongable requested a review from a team as a code owner November 4, 2024 19:13
@aarongable aarongable requested a review from jsha November 4, 2024 19:13
@beautifulentropy
Copy link
Member

While I think this is fine as-is, ideally I'd love some way to know that it's creating Redis spans at all. I think we should leave that for another time though.

jsha
jsha previously approved these changes Nov 4, 2024
@aarongable
Copy link
Contributor Author

Happy to leave a single redisSpan("get") under new-acct, since I have to resolve merge conflicts anyway.

@aarongable
Copy link
Contributor Author

Test-only, merging on one review.

@aarongable aarongable merged commit 21bc647 into main Nov 4, 2024
12 checks passed
@aarongable aarongable deleted the simplify-testtraces branch November 4, 2024 20:03
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.

3 participants