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

[testbed] Allow setting path of child process Collector executable #23258

Merged

Conversation

evan-bradley
Copy link
Contributor

Description:

A refactor that unexported the struct unintentionally made it so the executable path could not be set. This keeps the struct unexported, but adds an option to allow setting the path. I'm open to making the struct public again if that's preferred, this just seemed like the most straightforward method.

I also made agentExePath private to make it clear it's not meant to be accessed outside the package.

Testing:

A unit test was added to verify the change.

Documentation:

Godoc was added to the option function.

@codeboten codeboten merged commit 8b10209 into open-telemetry:main Jun 9, 2023
@github-actions github-actions bot added this to the next release milestone Jun 9, 2023
Caleb-Hurshman pushed a commit to observIQ/opentelemetry-collector-contrib that referenced this pull request Jul 6, 2023
…pen-telemetry#23258)

A refactor that unexported the struct unintentionally made it so the executable path could not be set. This keeps the struct unexported, but adds an option to allow setting the path. I'm open to making the struct public again if that's preferred, this just seemed like the most straightforward method.

I also made agentExePath private to make it clear it's not meant to be accessed outside the package.
---------

Co-authored-by: Evan Bradley <evan-bradley@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants