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
feat: [Trace Stats] Add skeleton of concentrator (#842)
## This PR
- Add the skeleton of `StatsConcentrator`, with no implementation
- Add `StatsConcentratorHandle` and `StatsConcentratorService`, which
send and process stats requests (`add()` and `get_stats()`) to/from a
queue, so mutex is not needed, and lock contention can be avoided.
(Thanks @duncanista for the suggestion and @astuyve for the example code
DataDog/serverless-components#32)
## Next steps
- Implement `StatsConcentrator`, which aggregates stats data into
buckets and returns it in batch
- Add more fields to `AggregationKey` and `Stats`
- Move the processing of stats after "obfuscation", as suggested by APM
team. This will involve lots of code changes, so I'll make it a separate
PR.
I'll mainly move code from this draft PR:
#827
## Architecture
<img width="1296" height="674" alt="image"
src="https://github.com/user-attachments/assets/2d4cb925-6cfc-4581-8ed6-6bd87cf0d87a"
/>
Jira: https://datadoghq.atlassian.net/browse/SVLS-7593
0 commit comments