Skip to content
This repository has been archived by the owner on Jul 31, 2023. It is now read-only.

Latest commit

 

History

History
41 lines (22 loc) · 1007 Bytes

oc_sampler_probability.md

File metadata and controls

41 lines (22 loc) · 1007 Bytes

Module oc_sampler_probability

This sampler assumes the lower 64 bits of the trace id are randomly distributed around the whole (long) range.

Behaviours: oc_sampler.

Description

The sampler creates an upper bound id based on the configured probability and compares the lower 64 bits of the trace id to for the sampling decision.

Function Index

init/1
should_sample/4

Function Details

init/1

init(Opts) -> any()

should_sample/4

should_sample(TraceId, X2, X3, IdUpperBound) -> any()