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

[exporterqueue] Implement blocking queue #11951

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

sfc-gh-sili
Copy link
Contributor

@sfc-gh-sili sfc-gh-sili commented Dec 18, 2024

Description

This PR

  1. Implements blocking memory queue. The queue blocks until the incoming request is successgfully sent out.
  2. Uses blocking queue + queue batcher in place of batch_sender if the feature gate UsePullingBasedExporterQueueBatcher is on.

Link to tracking issue

#8122
#10368

Testing

Documentation

Copy link

codecov bot commented Dec 18, 2024

Codecov Report

Attention: Patch coverage is 90.14085% with 7 lines in your changes missing coverage. Please review.

Project coverage is 91.69%. Comparing base (e5e12bf) to head (946ba78).

Files with missing lines Patch % Lines
exporter/internal/queue/blocking_queue.go 82.50% 6 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #11951      +/-   ##
==========================================
- Coverage   91.70%   91.69%   -0.01%     
==========================================
  Files         447      448       +1     
  Lines       23728    23793      +65     
==========================================
+ Hits        21759    21817      +58     
- Misses       1600     1606       +6     
- Partials      369      370       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@dmitryax
Copy link
Member

@sfc-gh-sili please rebase and look at the failing CI

@sfc-gh-sili sfc-gh-sili force-pushed the sili-batching branch 2 times, most recently from 7ea3462 to 0448db0 Compare December 20, 2024 02:19
usePullingBasedExporterQueueBatcher.IsEnabled() && be.BatcherCfg.Enabled && !be.queueCfg.Enabled {
if usePullingBasedExporterQueueBatcher.IsEnabled() && be.BatcherCfg.Enabled && !be.queueCfg.Enabled {
be.queueFactory = exporterqueue.NewBlockingMemoryQueue[internal.Request]()
be.queueCfg.QueueSize = 20
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need to set it to 20?

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