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

Restructure Queue to not have to deal with consumers #8828

Closed
wants to merge 1 commit into from

Conversation

bogdandrutu
Copy link
Member

Important (read before submitting)

We are currently preparing for the upcoming 1.0 GA release. Pull requests that are not aligned with
the current roadmap https://github.com/open-telemetry/opentelemetry-collector/blob/main/docs/roadmap.md
and are not aimed at stabilizing and preparing the Collector for the release will not be accepted.

Delete this paragraph before submitting.

Description: <Describe what has changed.
Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.>

Link to tracking Issue:

Testing: < Describe what testing was performed and which tests were added.>

Documentation: < Describe the documentation added.>

Please delete paragraphs that you did not use before submitting.

Signed-off-by: Bogdan Drutu <bogdan.drutu@snowflake.com>
Copy link

CLA Not Signed

@dmitryax
Copy link
Member

dmitryax commented Nov 9, 2023

It's a good idea to move this from queue to the sender 👍

Comment on lines +3 to +5
go 1.21

toolchain go1.21.3
Copy link
Member

Choose a reason for hiding this comment

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

Please revert :)

@@ -14,11 +14,11 @@ import (
"go.opentelemetry.io/collector/exporter/exporterhelper/internal"
)

// requestSender is an abstraction of a sender for a request independent of the type of the data (traces, metrics, logs).
// RequestSender is an abstraction of a sender for a request independent of the type of the data (traces, metrics, logs).
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
// RequestSender is an abstraction of a sender for a request independent of the type of the data (traces, metrics, logs).
// requestSender is an abstraction of a sender for a request independent of the type of the data (traces, metrics, logs).

// capacity restrictions, returning true upon success and false if no space is currently available.
Offer(item Request) bool
// Poll retrieves and removes the head of this queue.
Poll() <-chan Request
Copy link
Member

Choose a reason for hiding this comment

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

The name seems a bit confusing, given that it returns a channel. Maybe Chan(), Out() or something like that?

@dmitryax
Copy link
Member

superseded by #8898

@dmitryax dmitryax closed this Nov 15, 2023
@bogdandrutu bogdandrutu deleted the newqueue branch October 14, 2024 20:28
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.

3 participants