-
Notifications
You must be signed in to change notification settings - Fork 25
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
Fix sensor freezing worker thread #430
Conversation
…the connection is lost after 60 seconds using asynchronous timer task. Signed-off-by: Arjun Rajappa <Arjun.Rajappa@ibm.com>
Signed-off-by: Arjun Rajappa <Arjun.Rajappa@ibm.com>
f72fe3f
to
c4dea02
Compare
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.
Quick request.
lib/instana.rb
Outdated
@@ -17,6 +17,6 @@ | |||
::Instana::Activator.start | |||
::Instana.agent.spawn_background_thread | |||
|
|||
::Instana.logger.info "Stan is on the scene. Starting Instana instrumentation version #{::Instana::VERSION}" | |||
::Instana.logger.info "Stan is on the scene. Starting Instana instrumentation version #{::Instana::VERSION}" if ::Instana.agent.ready? |
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.
Indepentently if the Agent is ready, I think it's interesting to log this message.
I would keep it as before and add extra log messages if the Agent is not reached or is not ready to accept spans.
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.
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.
So will remove this condition
…done in host_agent.rb Signed-off-by: Arjun Rajappa <Arjun.Rajappa@ibm.com>
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.
It looks good to me.
Adding a timeout mechanism for agent connection and retrying if the connection is lost after 60 seconds using asynchronous timer task