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

eBPF loaded indicator #848

Merged
merged 6 commits into from
May 23, 2024
Merged

eBPF loaded indicator #848

merged 6 commits into from
May 23, 2024

Conversation

RonFed
Copy link
Contributor

@RonFed RonFed commented May 20, 2024

This PR adds the WithLoadedIndicator InstrumentationOption which enables the caller to be notified once all the probes are loaded. This is useful because the Instrumentation.Run function is blocking.
The Run function is consisted of 2 phases: The first one is responsible for loading all the relevant probes and the second is the main loop receiving and exporting the data. Hence, from the caller point of view there is no indication if the loading phase was successful and the probes are "ready".
Splitting the Run functions to 2 separate functions is problematic because it can cause the perf buffers to get full and data being lost if there is a large time gap between the loading phase and the main loop.

@RonFed RonFed requested a review from a team as a code owner May 20, 2024 12:19
@RonFed RonFed changed the title Loaded indicator eBPF loaded indicator May 20, 2024
@edeNFed edeNFed merged commit 6968f4f into open-telemetry:main May 23, 2024
17 checks passed
@MrAlias MrAlias modified the milestones: v0.12.0-alpha, v0.13.0-alpha Jun 4, 2024
@MrAlias MrAlias mentioned this pull request Jun 4, 2024
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.

None yet

3 participants