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

Fix confusion in the SpanFilter docstring #3851

Merged
merged 1 commit into from
Aug 21, 2024
Merged

Conversation

sulami
Copy link
Contributor

@sulami sulami commented Aug 20, 2024

What does this PR do?
The docstring was claiming that a truthy value from the filter block keeps the span, but in fact it's the other way around, a truthy value drops the span.

Motivation:
Found this by accident, and given that "truthy to filter" is already unintuitive enough, having the docs lie doesn't exactly help :D

Additional Notes:
Nope.

How to test the change?
Visual review should suffice.

The docstring was claiming that a truthy value from the filter block
keeps the span, but in fact it's the other way around, a truthy value
drops the span.
@sulami sulami requested a review from a team as a code owner August 20, 2024 07:04
@codecov-commenter
Copy link

codecov-commenter commented Aug 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.85%. Comparing base (d2498fb) to head (f57e826).
Report is 36 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3851      +/-   ##
==========================================
+ Coverage   97.83%   97.85%   +0.02%     
==========================================
  Files        1264     1269       +5     
  Lines       75725    75868     +143     
  Branches     3729     3736       +7     
==========================================
+ Hits        74084    74244     +160     
+ Misses       1641     1624      -17     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@p-datadog p-datadog merged commit 3da4cfd into DataDog:master Aug 21, 2024
186 checks passed
@p-datadog
Copy link
Contributor

Thank you very much for the PR @sulami

p-datadog pushed a commit to p-datadog/dd-trace-rb that referenced this pull request Aug 21, 2024
* master:
  Fix confusion in the SpanFilter docstring (DataDog#3851)
  Reset optflags to O0
  [NO-TICKET] Fix profiler `inline` helpers not working when optimization disabled
  Remove obsolete version
  Remove obsolete `common-environment-3x` anchor and fix presto host from `.env`
  Explicit hash
  Fix schema
  Lint
  Use `instance_double`
  Implement telemetry log
@TonyCTHsu TonyCTHsu added this to the 2.4.0 milestone Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants