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

Use new runtime detector for logging process events #1645

Merged
merged 7 commits into from
Oct 31, 2024

Conversation

RonFed
Copy link
Collaborator

@RonFed RonFed commented Oct 28, 2024

This is the first step of using the new runtime detector module for triggering eBPF instrumentations.
Currently, it is set up by the Odiglet and only logs the events.

Copy link
Contributor

@edeNFed edeNFed left a comment

Choose a reason for hiding this comment

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

Lgtm

odiglet/go.mod Outdated Show resolved Hide resolved
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.

💯

@RonFed RonFed merged commit 2f478f0 into odigos-io:main Oct 31, 2024
26 checks passed
RonFed added a commit that referenced this pull request Dec 4, 2024
This PR is a follow-up to #1645.
Adding the new `Manager` which will eventually replace the `Director`.
The new design has the following key features and improvements:
1. Use the [new runtime-detector
module](https://github.com/odigos-io/runtime-detector) to trigger
instrument/un-instrument events. This replaces the current approach
which relies on a Pod reconciler. The pod reconciler approach main
disadvantage is in scenarios of multiple containers in the same Pod and
multiple processes in the same container. Changing the trigger to being
process creation will allow us to guarantee we won't miss a requested
instrumentation.
note: the `runtime-detector` is configured to filter process events and
will only pass events according to its configuration.
2. Event loop design. The current director has a lot of fixed and
potential race conditions due to the concurrent nature of processes
creating/exiting and Pod events from the reconciler. The new `Manager`
does not have locks and uses an internal event loop.
3. Configuration updates are triggered by the `InstrumentationConfig`
reconciler (same as before) - those updates will be handled in the event
loop.
4. The `Factory` interface is refactored and a `Settings` option can be
expanded in the future to add more initial configuration options.
5. The `Instrumentation` interface is introduced and will replace
`OtelEbpfSdk`.
6. Update `go.opentelemetry.io/auto` to `v0.18.0-alpha`.

This change will currently only apply for OSS Go instrumentation.
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.

4 participants