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

DEBUG-2334 Move tracing rate limiters to Core #3870

Merged
merged 1 commit into from
Sep 3, 2024
Merged

Conversation

p-datadog
Copy link
Contributor

Dynamic instrumentation will use the TokenBucket
rate limiter. To facilitate this, the basic rate limiters are being moved from tracing to core.

Additional Notes:

There are no functionality changes in this PR. All code got deindented one level and the namespace was edited in references to match the new location.

How to test the change?
Existing unit tests

Unsure? Have a question? Request a review!

@github-actions github-actions bot added core Involves Datadog core libraries tracing labels Aug 27, 2024
@p-datadog p-datadog marked this pull request as ready for review August 27, 2024 17:13
@p-datadog p-datadog requested review from a team as code owners August 27, 2024 17:13
@codecov-commenter
Copy link

codecov-commenter commented Aug 27, 2024

Codecov Report

Attention: Patch coverage is 97.59036% with 2 lines in your changes missing coverage. Please review.

Project coverage is 97.85%. Comparing base (3679939) to head (a3162cb).
Report is 10 commits behind head on master.

Files Patch % Lines
lib/datadog/core/rate_limiter.rb 97.22% 2 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##           master    #3870    +/-   ##
========================================
  Coverage   97.85%   97.85%            
========================================
  Files        1271     1277     +6     
  Lines       76024    76302   +278     
  Branches     3740     3740            
========================================
+ Hits        74395    74669   +274     
- Misses       1629     1633     +4     

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

@pr-commenter
Copy link

pr-commenter bot commented Aug 27, 2024

Benchmarks

Benchmark execution time: 2024-08-28 14:23:00

Comparing candidate commit a3162cb in PR branch move-rate-limiter with baseline commit 0c87de3 in branch master.

Found 1 performance improvements and 1 performance regressions! Performance is the same for 21 metrics, 2 unstable metrics.

scenario:profiler - profiler gc

  • 🟩 throughput [+7727.514op/s; +7993.660op/s] or [+2.130%; +2.203%]

scenario:profiler - sample timeline=false

  • 🟥 throughput [-0.681op/s; -0.640op/s] or [-9.533%; -8.965%]

Dynamic instrumentation will use the TokenBucket
rate limiter. To facilitate this, the basic rate limiters
are being moved from tracing to core.
@p-datadog p-datadog merged commit ae50107 into master Sep 3, 2024
191 checks passed
@p-datadog p-datadog deleted the move-rate-limiter branch September 3, 2024 12:22
p-datadog pushed a commit to p-datadog/dd-trace-rb that referenced this pull request Sep 3, 2024
* master: (56 commits)
  DEBUG-2334 Move tracing rate limiters to Core (DataDog#3870)
  Fix permissions system-tests workflow
  Fix update-gemfiles workflow permissions
  Expand stripe matrix
  Update gemfiles/*
  Remove comments
  Refactor spec
  Change path matching with gem root
  Remove `debug` level
  Improve regex
  Add stack_trace fields
  Fix constant reference
  Lazy load default waf processers and scanners in order to load telemetry logs
  Telemetry log for processor and rule_loader
  [NO-TICKET] Fix stale apt cache in memory leaks CI test
  [NO-TICKET] Add more memory leak testing for profiling using asan
  Fix profiler not picking up VM compilation settings correctly
  Lint
  Fix failing specs
  Remove obsolete http route spec
  ...
@anmarchenko anmarchenko added this to the 2.4.0 milestone Sep 9, 2024
y9v pushed a commit that referenced this pull request Sep 13, 2024
Dynamic instrumentation will use the TokenBucket
rate limiter. To facilitate this, the basic rate limiters
are being moved from tracing to core.

Co-authored-by: Oleg Pudeyev <code@olegp.name>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Involves Datadog core libraries tracing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants