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

Verify the language of a process before instrumenting #2164

Merged
merged 3 commits into from
Jan 8, 2025

Conversation

RonFed
Copy link
Collaborator

@RonFed RonFed commented Jan 8, 2025

Since our language detection is done in the container level but instrumentation is done in the process level it is possible that we'll try to instrument a process as being in certain language even though it is written in a different one - this can happen when multiple processes exist in the same container.
To handle this, the distribution matcher is updated to call the language inspector of the language written in the device - and verify the language match.

In addition, the manager is updated to call the reporter OnInit method regardless of an init error. Also tracking the PID in case of an init error - this allows the reporter to clean the instrumentation instance once the PID is exiting.

@RonFed RonFed requested review from edeNFed and blumamir January 8, 2025 14:14
Copy link
Collaborator

@blumamir blumamir left a comment

Choose a reason for hiding this comment

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

Looks good 💯

@RonFed RonFed merged commit e3ddf8f into odigos-io:main Jan 8, 2025
31 checks passed
@RonFed RonFed deleted the verify_lang_before_instrument branch January 8, 2025 20:01
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