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

Validate successful span scoped rules test #465

Merged
merged 2 commits into from
Jun 14, 2022

Conversation

MikeGoldsmith
Copy link
Contributor

Which problem is this PR solving?

The test to validate the new span scoped rule sets in #440 only validated the keep return property for unsuccessful sets of spans. This PR updates the test to verify that the keep property is correct by updating the sample rate on the rule set to 1.

Short description of the changes

  • Update sample rate in the test to 1, so we can validate the keep return property

@MikeGoldsmith MikeGoldsmith added type: maintenance The necessary chores to keep the dust off. version: bump minor A PR that adds behavior, but is backwards-compatible. labels Jun 10, 2022
@MikeGoldsmith MikeGoldsmith requested a review from a team June 10, 2022 12:44
@MikeGoldsmith MikeGoldsmith self-assigned this Jun 10, 2022
@vreynolds
Copy link
Contributor

So I can change all the span data to not match the rule, and the test still passes. I don't know that it's actually testing what we expect?

@MikeGoldsmith
Copy link
Contributor Author

I've updated the test cases to be clearer on what they are testing, including testing both span and trace scopes.

Copy link
Contributor

@vreynolds vreynolds left a comment

Choose a reason for hiding this comment

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

🎈

@MikeGoldsmith MikeGoldsmith merged commit c71e4f6 into main Jun 14, 2022
@MikeGoldsmith MikeGoldsmith deleted the mike/update-rule-scope-test branch June 14, 2022 22:27
ghost pushed a commit to opsramp/tracing-proxy that referenced this pull request Jul 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: maintenance The necessary chores to keep the dust off. version: bump minor A PR that adds behavior, but is backwards-compatible.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants