opencensus-scala icon indicating copy to clipboard operation
opencensus-scala copied to clipboard

Make Sample configurable

Open Sebruck opened this issue 7 years ago • 1 comments

Problem Currently the Sampler for each span is fixed to Sampler.alwaysSample(), which is not feasible for most of the production setups.

Goal Make it possible to configure the sampler.

Ideas Via configuration file: Percentage spans sampled (as default) Via code: When creating a span or using one of the trace functions it should be possible to override the sampler individually

Sebruck avatar Mar 18 '18 20:03 Sebruck

Partial done. A global default can be configured in the config.

https://github.com/Sebruck/opencensus-scala/commit/4179154c00f5060ec8da6107f402b813179e7ba3

Missing: Override default on span basis

Sebruck avatar Mar 19 '18 08:03 Sebruck