Skip to content
This repository has been archived by the owner on May 23, 2024. It is now read-only.

Support delayed sampling decisions #447

Merged
merged 7 commits into from
Oct 15, 2019

Conversation

yurishkuro
Copy link
Member

@yurishkuro yurishkuro commented Oct 12, 2019

Part of # #449

Yuri Shkuro added 2 commits October 11, 2019 17:52
Signed-off-by: Yuri Shkuro <ys@uber.com>
Signed-off-by: Yuri Shkuro <ys@uber.com>
@codecov
Copy link

codecov bot commented Oct 14, 2019

Codecov Report

Merging #447 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #447   +/-   ##
=======================================
  Coverage   84.69%   84.69%           
=======================================
  Files          33       33           
  Lines        1503     1503           
=======================================
  Hits         1273     1273           
  Misses        168      168           
  Partials       62       62

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 ff64c7c...d55fc43. Read the comment docs.

@yurishkuro yurishkuro changed the title [WIP] Support delayed sampling decisions Support delayed sampling decisions Oct 14, 2019
Yuri Shkuro added 4 commits October 14, 2019 17:49
Signed-off-by: Yuri Shkuro <ys@uber.com>
Signed-off-by: Yuri Shkuro <ys@uber.com>
Signed-off-by: Yuri Shkuro <ys@uber.com>
Signed-off-by: Yuri Shkuro <ys@uber.com>
tracer.go Outdated
t.metrics.SpansStartedDelayedSampling.Inc(1)
if newTrace {
t.metrics.TracesStartedDelayedSampling.Inc(1)
} else if sp.firstInProcess {

Choose a reason for hiding this comment

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

SA9003: empty branch (from staticcheck)

@@ -93,7 +93,7 @@ func (s *tracerSuite) TestBeginRootSpan() {
s.NotNil(ss.duration)

s.metricsFactory.AssertCounterMetrics(s.T(), []metricstest.ExpectedMetric{
{Name: "jaeger.tracer.finished_spans", Value: 1},
{Name: "jaeger.tracer.finished_spans", Tags: map[string]string{"sampled": "y"}, Value: 1},
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we may want to tighten these tests by also asserting the length of these metrics to verify that nothing additional is emitted.

Copy link
Member Author

@yurishkuro yurishkuro Oct 15, 2019

Choose a reason for hiding this comment

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

I think that'd only make the tests more fragile. The objective here is to test that some specific metrics are emitted.

Signed-off-by: Yuri Shkuro <ys@uber.com>
@yurishkuro yurishkuro merged commit c9bbde9 into jaegertracing:master Oct 15, 2019
@yurishkuro yurishkuro deleted the delayed-sampling branch October 15, 2019 16:37
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.

3 participants