Constant sampler: add option to always follow the parent's decision. (#182)

Fixes #180.
pull/183/head
easy 6 years ago committed by GitHub
parent b8220012f6
commit 85674de745
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 15
      src/opencensus/proto/trace/v1/trace_config.proto

@ -56,12 +56,19 @@ message ProbabilitySampler {
double samplingProbability = 1;
}
// Sampler that makes a constant decision (either always "yes" or always "no")
// on span sampling.
// Sampler that always makes a constant decision on span sampling.
message ConstantSampler {
// Whether spans should be always sampled, or never sampled.
bool decision = 1;
// How spans should be sampled:
// - Always off
// - Always on
// - Always follow the parent Span's decision (off if no parent).
enum ConstantDecision {
ALWAYS_OFF = 0;
ALWAYS_ON = 1;
ALWAYS_PARENT = 2;
}
ConstantDecision decision = 1;
}
// Sampler that tries to sample with a rate per time window.

Loading…
Cancel
Save