getsentry / getsentry/sentry-go
refactor tracing to snapshot state at processor enqueue boundary
Open
Go
Improvement
Spans
- Dominant language
- Go
- Stars
- 1.1k
- Forks
- 262
- Avg merge
- 1d 48m
- Merged PRs (30d)
- 7
Description
This change eliminates the complexity and improves the concurrency model for telemetry, by separating the live state from the serialized payload sent through the telemetry processor.
Instead of keeping pre-serialized data on live telemetry, we should snapshot the state once at enqueue time and use the frozen snapshot for serialization. This eliminates inconsistencies and possible races on concurrent access.
Contributor guide
Assessment
This issue has not been assessed yet.