-
Notifications
You must be signed in to change notification settings - Fork 74
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
Allow OpAMP server to request an agent restart or shutdown #53
Conversation
andykellr
commented
Jan 18, 2022
•
edited by tigrannajaryan
Loading
edited by tigrannajaryan
- Adds ServerToAgentCommand to allow the server to request a restart or shutdown.
- Adds AcceptsRestartRequests to AgentCapabilities so that agents can indicate if they support restart.
- Adds OnCommand to the client Callbacks which is called when the server requests shutdown via the ServerToAgentCommand
- Moved client.CallbacksStruct to types.CallbacksStruct so that it could be used it in receiver_test.go without an import cycle.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@andykellr thanks for the proposal.
It may useful to discuss this in the spec repo in the issue and only after agreeing to a specific approach work on the implementation.
I was traveling and finally had a chance to refactor this PR to use a |
I think this is a reasonable approach. Can you please submit a PR against https://github.com/open-telemetry/opamp-spec and also make sure the change is visible/discussed in the next workgroup meeting? |
Refactor to use a new field ServerToAgentCommand for Restart and Shutdown Removed reference to shutdown command for now
d18d21b
to
d61387f
Compare
@andykellr Please update this PR to only implement changes accepted in open-telemetry/opamp-spec#64 for now. |
@tigrannajaryan I think this PR is ready to merge. Please let me know if any other changes are needed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Let's wait for @pmm-sumo to also approve.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM too :)