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

feat: delete instrumentation instance if exit with healthy state #2209

Merged

Conversation

tamirdavid1
Copy link
Collaborator

No description provided.

@tamirdavid1 tamirdavid1 force-pushed the delete-ii-if-process-exit-gracefully branch from 187ffdd to c4193ab Compare January 13, 2025 11:31
if message.Health.Healthy {
return fmt.Errorf("agent disconnect message with healthy status")
c.logger.Info("Agent disconnected with healthy status, deleting instrumentation instance", "workloadNamespace", connectionInfo.Workload.Namespace, "workloadName", connectionInfo.Workload.Name, "workloadKind", connectionInfo.Workload.Kind)
Copy link
Collaborator

Choose a reason for hiding this comment

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

This log can happen a lot for certain applications, right? (i.e python server that runs processes periodically)?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@RonFed correct, but there is already a log for opamp connect meaning we will have logs for each process connect as well

@tamirdavid1 tamirdavid1 force-pushed the delete-ii-if-process-exit-gracefully branch from 607557e to c3fecb4 Compare January 13, 2025 11:54
@tamirdavid1 tamirdavid1 merged commit d208952 into odigos-io:main Jan 13, 2025
33 checks passed
@BenElferink BenElferink added the enhancement New feature or request label Jan 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants