Commit Graph

11 Commits

Author SHA1 Message Date
Tyler Benson 3d1f2b9d01 Ensure default sampler is available
This avoids the possible null pointer reference.
2019-09-10 15:29:13 -07:00
Tyler Benson a010d4e095 Remove race condition. 2019-09-10 14:56:03 -07:00
Tyler Benson 8cd294dba0 Use ThreadLocalRandom for improved concurrency. 2019-09-10 14:04:37 -07:00
Tyler Benson 42545a0906 Remove synchronization from RateByServiceSampler
This change avoids lock contention in a hot code path.

I also added double check locking in ClassLoaderMatcher to reduce the need of locking there.
2019-09-10 12:44:13 -07:00
Andrew Kent 2dfc3ed465 Do not set the sampler rate for RateByServiceSampler 2018-12-13 08:24:09 -08:00
Tyler Benson 12a2fce96d Upgrade java formatter version. 2018-07-19 14:10:53 +10:00
Andrew Kent 4401779aad Fix priority sampling implementation bugs
- use correct sampling flag name
- set sampling rate
- set sampling flags on root span metrics only
- tests to assert correct behavior
2018-06-26 10:19:28 -07:00
Andrew Kent 32272a4aa7 Move PrioritySampling flags to dd-trace-api project. 2018-04-16 12:46:26 -07:00
Andrew Kent c1f9f4fc5d Remove priority sampling logic from DDTracer 2018-01-22 11:35:36 -08:00
Andrew Kent 3a76347a21 Remover RateSampler and sampler config options 2018-01-22 11:35:36 -08:00
Andrew Kent aa5356837d RateByServiceSampler 2018-01-22 11:35:36 -08:00