Skip to content
This repository has been archived by the owner on Sep 13, 2022. It is now read-only.

Throttler implementation #18

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

isaachier
Copy link

@isaachier isaachier commented Jul 10, 2018

Throttler implementation for Java.

  • Adds throttler to avoid debug spans flooding backend.

@isaachier isaachier changed the title <!-- We appreciate your contribution to the Jaeger project! 👋🎉 Throttler implementation Jul 10, 2018
@@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-4.0-bin.zip
Copy link
Contributor

Choose a reason for hiding this comment

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

Why downgrade?

Copy link
Author

Choose a reason for hiding this comment

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

I messed this up. Good catch.

@@ -202,11 +202,20 @@ public synchronized Span setTag(String key, Number value) {
private Span setTagAsObject(String key, Object value) {
if (key.equals(Tags.SAMPLING_PRIORITY.getKey()) && (value instanceof Number)) {
int priority = ((Number) value).intValue();
byte newFlags;

// Ignore debug spans trying to re-enable debug.
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you detail why in the comment?

Copy link
Author

Choose a reason for hiding this comment

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

Sure thing.

@codecov
Copy link

codecov bot commented Jul 11, 2018

Codecov Report

Merging #18 into master will decrease coverage by 0.35%.
The diff coverage is 77.67%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master      #18      +/-   ##
============================================
- Coverage     84.73%   84.37%   -0.36%     
- Complexity      607      637      +30     
============================================
  Files            94      100       +6     
  Lines          2410     2516     +106     
  Branches        271      284      +13     
============================================
+ Hits           2042     2123      +81     
- Misses          276      292      +16     
- Partials         92      101       +9
Impacted Files Coverage Δ Complexity Δ
...-core/src/main/java/com/uber/jaeger/Constants.java 0% <ø> (ø) 0 <0> (ø) ⬇️
...src/main/java/com/uber/jaeger/metrics/Metrics.java 80.43% <ø> (ø) 13 <0> (ø) ⬇️
.../com/uber/jaeger/throttler/ThrottlerException.java 100% <100%> (ø) 1 <1> (?)
...ger-core/src/main/java/com/uber/jaeger/Tracer.java 84.16% <35.71%> (-2.98%) 24 <1> (+1)
...aeger-core/src/main/java/com/uber/jaeger/Span.java 82.17% <42.85%> (-2.51%) 46 <0> (ø)
...com/uber/jaeger/throttler/http/CreditResponse.java 50% <50%> (ø) 1 <1> (?)
...m/uber/jaeger/throttler/http/OperationBalance.java 66.66% <66.66%> (ø) 2 <2> (?)
.../com/uber/jaeger/throttler/HttpThrottlerProxy.java 85.71% <85.71%> (ø) 5 <5> (?)
...e/src/main/java/com/uber/jaeger/TracedProcess.java 87.5% <87.5%> (ø) 3 <3> (?)
...ava/com/uber/jaeger/throttler/RemoteThrottler.java 89.09% <89.09%> (ø) 17 <17> (?)
... and 6 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 896aafc...765f05c. Read the comment docs.

Isaac Hier added 5 commits August 9, 2018 13:14
Signed-off-by: Isaac Hier <[email protected]>
Signed-off-by: Isaac Hier <[email protected]>
Signed-off-by: Isaac Hier <[email protected]>
Signed-off-by: Isaac Hier <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants