Skip to content

Recommend agent_disconnect for plain HTTP transport#353

Open
Krishnachaitanyakc wants to merge 2 commits into
open-telemetry:mainfrom
Krishnachaitanyakc:fix/303-agent-disconnect-plain-http
Open

Recommend agent_disconnect for plain HTTP transport#353
Krishnachaitanyakc wants to merge 2 commits into
open-telemetry:mainfrom
Krishnachaitanyakc:fix/303-agent-disconnect-plain-http

Conversation

@Krishnachaitanyakc

Copy link
Copy Markdown

Update the Plain HTTP Transport section under "Closing Connection" to recommend (SHOULD) that HTTP clients include agent_disconnect in the last AgentToServer message on shutdown or when switching to new connection settings. This makes disconnect signalling consistent across WebSocket and plain HTTP transports.

The server-side cleanup heuristic is retained as a fallback for ungraceful terminations.

A corresponding implementation change will be needed in opamp-go.

Fixes #303

Update the Plain HTTP Transport section under Closing Connection to
recommend (SHOULD) that HTTP clients include agent_disconnect in the
last AgentToServer message on shutdown or when switching to new
connection settings. This makes disconnect signalling consistent
across WebSocket and plain HTTP transports and lets the Server
immediately mark the Agent as disconnected rather than waiting for
missed polling intervals.

The server-side cleanup heuristic is retained as a fallback for
ungraceful terminations (kill -9, etc.).

Fixes open-telemetry#303

@andykellr andykellr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The language looks good, but can we make the agent_disconnect text a link to the field? Similar to instance_uid earlier in the spec.

@Krishnachaitanyakc

Copy link
Copy Markdown
Author

@andykellr can you review this?

@tigrannajaryan tigrannajaryan requested a review from andykellr June 30, 2026 20:47
@tigrannajaryan tigrannajaryan dismissed andykellr’s stale review June 30, 2026 20:48

Requested changes made.

@tigrannajaryan

Copy link
Copy Markdown
Member

@andykellr PTAL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Extending recommendation for agent_disconnect to plain HTTP transport

5 participants