Closed heiko-holz closed 1 year ago
Merging #1558 (eb2637d) into master (e1d0861) will increase coverage by
0.70%
. The diff coverage is58.61%
.:exclamation: Current head eb2637d differs from pull request most recent head 2d4b6cc. Consider uploading reports for the commit 2d4b6cc to get more accurate results
inspectit-ocelot-core/src/main/java/rocks/inspectit/ocelot/core/opentelemetry/trace/samplers/HybridParentTraceIdRatioBasedSampler.java
line 52 at r1 (raw file):
Technically we could. However, I have followed OpenCensus' implementation of https://github.com/census-instrumentation/opencensus-java/blob/master/api/src/main/java/io/opencensus/trace/samplers/ProbabilitySampler.java. But we can change it to this if you think this is more readable: ```Java // If the parent or any parent link has been sampled keep, the sampling decision. if ((parentSpanContext.isValid() && parentSpanContext.isSampled()) || isAnyParentLinkSampled(parentLinks)) { return SamplingResult.recordAndSample(); } ```
We have agreed to change it to the shorter version
Closes #1555
This change is