-
Notifications
You must be signed in to change notification settings - Fork 846
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
Conversation
|
I realized we probably do want to tweak the polling strategy. Can you share the code you've been experimenting with for signalling? |
@anuraaga This is what I was playing with https://github.com/sbandadd/opentelemetry-java/pull/1/files. |
@@ -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"); |
There was a problem hiding this comment.
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?
ReadableSpan lastElement = queue.poll(100, TimeUnit.MILLISECONDS); | ||
ReadableSpan lastElement = queue.poll(queuePollWaitTimeNanos, TimeUnit.NANOSECONDS); |
There was a problem hiding this comment.
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.
We are looking for better alternatives. I don't think this is needed anyway. |
No description provided.