-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
[cmd/opampsupervisor]: Move start logic into separate "Start" function #34380
Labels
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
crobert-1
added
enhancement
New feature or request
and removed
needs triage
New item requiring triage
labels
Aug 1, 2024
Removed |
Hi, I would like to take this ticket @crobert-1 |
Resolved via #34509 |
f7o
pushed a commit
to f7o/opentelemetry-collector-contrib
that referenced
this issue
Sep 12, 2024
…te Start() function (open-telemetry#34509) **Link to tracking Issue:** open-telemetry#34380 Signed-off-by: odubajDT <ondrej.dubaj@dynatrace.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Component(s)
cmd/opampsupervisor
Describe the issue you're reporting
NewSupervisor currently constructs the supervisor object and additionally starts the supervision processes (e.g. it bootstraps, starts the collector, connects to opamp server).
Instead, NewSupervisor should simply construct the Supervisor object, and the actual supervision process should happen on "Start".
This would help with unit testing, where we currently manually construct supervisor objects, leading to failures in unit tests in some PRs where logic is updated to access a field that wasn't initialized properly.
The text was updated successfully, but these errors were encountered: