-
Notifications
You must be signed in to change notification settings - Fork 71
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
rcvCommand
should send update to Server on err
#186
Comments
The spec does not say anything about what the behavior should be. I am a bit reluctant about using AgentHealth to report the error, especially with Probably a compromise is to report I think it would be useful to try to implement restarting in our Supervisor example to get a better feel of how this machinery should work. In the meantime I think we should keep the Command capability in "beta". I will add it to open-telemetry/opamp-spec#147 |
I agree. That is partly what got me to create this issue. I was looking into this open-telemetry/opentelemetry-collector-contrib#21077 where the commander returns an error https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/afb5b9b93fe3e8be5bb396335f8d959f6ad415a8/cmd/opampsupervisor/supervisor/commander/commander.go#L84-L90 which I thought could occur when the agent actually fails to start, but I see your point about Supervisor. |
I think it would be great if you can ahead and experiment a bit with this and then based on your feedback perhaps we need to refine the spec so that it tells what the expected behavior in response to commands is. |
I think this equally applies to |
Good observation. It is a missing feature. |
Updates OpAMP spec to 0.9.0 and implements spec change open-telemetry/opamp-spec#186 The example server still accepts old-style ULID agent instances to demonstrate how this change can be handled in a backward compatible way. Replace ULIDs by 16 byte ids and recommend UUID v7 (open-telemetry#186)
Updates OpAMP spec to 0.9.0 and implements spec change open-telemetry/opamp-spec#186 The example server still accepts old-style ULID agent instances to demonstrate how this change can be handled in a backward compatible way. Replace ULIDs by 16 byte ids and recommend UUID v7 (#186)
The
rcvCommand
in receivedProcessor ignores the returned error from the callbackOnCommand
. When the error is non-nil it should be reported to Server withAgentHealth.healhy=false
along withlastError
(@tigrannajaryan, I think this is the right way to report the error?)opamp-go/client/internal/receivedprocessor.go
Lines 220 to 224 in 715146e
The text was updated successfully, but these errors were encountered: