Skip to content

chore: add sampling test case#833

Merged
maxdeichmann merged 2 commits intomainfrom
add-sampling-test-case
Aug 5, 2024
Merged

chore: add sampling test case#833
maxdeichmann merged 2 commits intomainfrom
add-sampling-test-case

Conversation

@maxdeichmann
Copy link
Member

No description provided.

@maxdeichmann maxdeichmann enabled auto-merge (squash) August 5, 2024 15:03
Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

Disclaimer: Experimental PR review

PR Summary

Added new test cases to tests/test_sampler.py to enhance coverage for the deterministic_sample method.

  • Added test case for 50% sampling rate, verifying sampled IDs fall within expected range.
  • Added test case for 10% sampling rate, ensuring correct sampling behavior.
  • Generated 1000 trace IDs for robust validation of sampling logic.

These changes improve the robustness of the Sampler class validation.

1 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings

@maxdeichmann maxdeichmann merged commit abc2188 into main Aug 5, 2024
@maxdeichmann maxdeichmann deleted the add-sampling-test-case branch August 5, 2024 15:32
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.

1 participant