-
Notifications
You must be signed in to change notification settings - Fork 231
Java: Cleanup operation samplers if absent from strategy response #655
Conversation
jaeger-core/src/main/java/io/jaegertracing/internal/samplers/PerOperationSampler.java
Outdated
Show resolved
Hide resolved
jaeger-core/src/main/java/io/jaegertracing/internal/samplers/PerOperationSampler.java
Outdated
Show resolved
Hide resolved
Signed-off-by: jung <jung@uber.com>
String absentOp = "ShouldBeRemoved"; | ||
operationToSamplers.put(absentOp, mock(GuaranteedThroughputSampler.class)); | ||
PerOperationSamplingParameters perOperationSamplingParameters1 = | ||
new PerOperationSamplingParameters(OPERATION, new ProbabilisticSamplingStrategy(SAMPLING_RATE)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't operationToSamplers
be passed in here to control the starting state of the test?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
undertest is inited with the operationToSamplers during setup, adding a sampler to the map should do the job regarding the starting state.
Codecov Report
@@ Coverage Diff @@
## master #655 +/- ##
===========================================
- Coverage 89.48% 89.4% -0.09%
Complexity 563 563
===========================================
Files 69 69
Lines 2073 2076 +3
Branches 263 263
===========================================
+ Hits 1855 1856 +1
- Misses 136 138 +2
Partials 82 82
Continue to review full report at Codecov.
|
Signed-off-by: jung jung@uber.com
Which problem is this PR solving?
Short description of the changes