You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, a "not sampled" decision for a trace is only cached when late
spans arrive for it. Whereas a "sampled" decision for a trace is
immediately cached. This pull request immediately caches "not sampled"
decisions, late spans (or reprocessed spans) for "not sampled" traces
now take fewer resources to process.
Currently, traces are stored in memory until `num_traces` is reached,
then the oldest is deleted to make room. This is a clever mechanism to
limit the size* of the internal map, however, trace span counts and
their contents likely vary considerably. This pull request doesn't touch
this mechanism, but it does delete traces from the internal map after
they are released and are added to a decision cache.
---------
Signed-off-by: Sean Porter <[email protected]>
0 commit comments