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

DWARF info becoming optional #38

Merged
merged 1 commit into from
Mar 30, 2023
Merged

DWARF info becoming optional #38

merged 1 commit into from
Mar 30, 2023

Conversation

mariomac
Copy link
Contributor

@mariomac mariomac commented Mar 29, 2023

Addresses issue #31.

The current behavior is: first, look for the debug information. If not found (or failed), then use the prefetched offsets.

For most cases, using directly the prefetched offsets would just work, but I think an scenario where checking first the debug info would avoid errors: someone updates the instrumented executable with a newer version of Go or a library, but keeps the instrumenter in and old version that do not include the updated offsets.

The code from the Go symbols table inspections is mostly imported from https://github.com/open-telemetry/opentelemetry-go-instrumentation

@mariomac mariomac requested a review from grcevski March 29, 2023 16:00
Copy link
Contributor

@grcevski grcevski left a comment

Choose a reason for hiding this comment

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

LGTM!

@mariomac mariomac merged commit c978d33 into grafana:main Mar 30, 2023
@mariomac mariomac deleted the non-dwarf branch March 30, 2023 07:39
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

2 participants