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

Fix sensor freezing worker thread #430

Merged
merged 3 commits into from
Nov 11, 2024

Conversation

arjun-rajappa
Copy link
Contributor

Adding a timeout mechanism for agent connection and retrying if the connection is lost after 60 seconds using asynchronous timer task

…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>
@arjun-rajappa arjun-rajappa force-pushed the fix-sensor-freezing-worker-thread branch from f72fe3f to c4dea02 Compare November 6, 2024 05:21
@arjun-rajappa arjun-rajappa requested a review from a team November 6, 2024 05:28
Copy link
Member

@pvital pvital left a 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?
Copy link
Member

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor Author

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>
Copy link
Member

@pvital pvital left a 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.

@arjun-rajappa arjun-rajappa merged commit 254cb60 into master Nov 11, 2024
247 of 248 checks passed
@arjun-rajappa arjun-rajappa deleted the fix-sensor-freezing-worker-thread branch November 11, 2024 08:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants