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 config option for queue poll wait time #2969

Closed
wants to merge 1 commit into from

Conversation

sbandadd
Copy link
Contributor

@sbandadd sbandadd commented Mar 3, 2021

No description provided.

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Mar 3, 2021

CLA Signed

The committers are authorized under a signed CLA.

@anuraaga
Copy link
Contributor

anuraaga commented Mar 3, 2021

I realized we probably do want to tweak the polling strategy. Can you share the code you've been experimenting with for signalling?

@sbandadd
Copy link
Contributor Author

sbandadd commented Mar 3, 2021

@@ -40,6 +40,7 @@
void configureTracerProvider() {
Map<String, String> properties = new HashMap<>();
properties.put("otel.bsp.schedule.delay", "100000");
properties.put("otel.bsp.queue.poll.wait.time", "100");
Copy link
Member

Choose a reason for hiding this comment

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

This probably needs to go in specs?

Comment on lines -191 to +196
ReadableSpan lastElement = queue.poll(100, TimeUnit.MILLISECONDS);
ReadableSpan lastElement = queue.poll(queuePollWaitTimeNanos, TimeUnit.NANOSECONDS);
Copy link
Member

Choose a reason for hiding this comment

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

Can you document the motivation? We don't want to add configuration for everything unless there is a good use-case to configure that.

@sbandadd
Copy link
Contributor Author

sbandadd commented Mar 4, 2021

We are looking for better alternatives. I don't think this is needed anyway.

@sbandadd sbandadd closed this Mar 4, 2021
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