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

An option to keep the debug information in the collector binary #63

Closed
kaero opened this issue Jan 25, 2022 · 1 comment
Closed

An option to keep the debug information in the collector binary #63

kaero opened this issue Jan 25, 2022 · 1 comment

Comments

@kaero
Copy link

kaero commented Jan 25, 2022

It's hard to impossible to debug a collector binary using gdb due to stripped DWARF and symbols tables.
https://github.com/open-telemetry/opentelemetry-collector/blob/main/cmd/builder/internal/builder/main.go#L89

It would be wonderful to have an option in the builder configuration to keep the debug information. Possibly it could be generalized to a pass of any arguments to the go build command call with the default value ["-ldflags=-s -w", "-trimpath"] to keep the compatibility.

@jpkrohling jpkrohling transferred this issue from open-telemetry/opentelemetry-collector Jan 25, 2022
@jpkrohling
Copy link
Member

Duplicates #58.

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

No branches or pull requests

2 participants