Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add stream state to stream frames #895

Draft
wants to merge 5 commits into
base: develop
Choose a base branch
from

Conversation

jfallows
Copy link
Contributor

@jfallows jfallows commented Apr 3, 2024

Description

Active stream metrics rely on being able to cancel out counters for open vs error | close, where open counters are triggered by BEGIN frames and error counters are triggered by either ABORT or RESET frames.

Due to the removal of stream handlers when sending ABORT or receiving RESET, we do not double count these errors.

However, there are edge cases where a reply RESET can be sent without a corresponding reply BEGIN, making it difficult to get the active count correct without introducing a lot of memory state during the metrics recording.

Instead, we can acheive the same goal to expose metrics recording to stream state by encoding the stream state in each stream frame, as a bitset, which will also further assist with diagnostics.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants