Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: no need to store decisions in a list in redis (#1151)
## Which problem is this PR solving? A trace state is stored in two data structures in redis currently, one in a hash table with the rest of the `CentralTraceStatus` information, another one in a sorted set. The sorted set is used for `GetTracesForState` so that Refinery can quickly get all trace IDs within a state. Refinery never retrieves a list of trace IDs that has their sampling decisions already made. Therefore, we actually don't need to store than in a sorted set form anymore This should further reduce our Redis memory usage. ## Short description of the changes - don't store trace IDs in a state if it's decision is already made --------- Co-authored-by: Kent Quirk <kentquirk@honeycomb.io>
- Loading branch information