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 in-flight-bytes metric to concurrent batch processor #112

Merged
merged 4 commits into from
Nov 28, 2023

Conversation

jmacd
Copy link
Contributor

@jmacd jmacd commented Nov 28, 2023

Fixes #110 (with #111).

This adds an up-down counter of bytes acquired and released, since the semaphore does not expose the same quantity.

Also, this moves the semaphore into the batch processor, instead of in the shard. The limit therefore applies to all shards at once, which I think is what we intend, or at least it's the simpler option to reason about vs allowing each shard to have an independent limit.

@jmacd jmacd merged commit e589559 into open-telemetry:main Nov 28, 2023
2 checks passed
@jmacd jmacd deleted the jmacd/inflight_met branch November 28, 2023 21:40
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.

Visibility into concurrent batch latency and in-flight-bytes
2 participants