fix: Send AgentToServer.agent_disconnect when client is stopped.#384
Conversation
|
Sorry for the delay. I suggest that for now we implement agent_disconnect for WebSocket only. If necessary we can add it for http transport later. |
107f2ea to
9c82b12
Compare
|
I believe this logic should be added to HTTP too in order for the collector to be spec-compliant. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #384 +/- ##
==========================================
+ Coverage 80.10% 80.19% +0.09%
==========================================
Files 27 27
Lines 2578 2590 +12
==========================================
+ Hits 2065 2077 +12
Misses 395 395
Partials 118 118 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
The build is failing because of a bug that will be fixed by #425 |
|
@minuk-dev please rebase. The build should now pass. |
3946fe2 to
28f76f3
Compare
@agardnerIT I agree with you. But, I think the spec is ambiguous.
Should we suggest to add the spec like Could you please open new issue to discuss it, if you need? |
tigrannajaryan
left a comment
There was a problem hiding this comment.
LGTM. Thank you @minuk-dev
In the opamp-spec document,
But, currently there is no implementation for it.
To resolve it, ensure to send
AgentToServer.agent_disconnectwhen the client'sStop().[Edit]
related to #179
[Edit - 2]