Skip to content

Exclude full status on websocket reconnect#512

Merged
andykellr merged 1 commit into
open-telemetry:mainfrom
observIQ:271-modify-status-reporting-section-of-the-spec-to-allow-omitting-status-on-reconnect
Feb 18, 2026
Merged

Exclude full status on websocket reconnect#512
andykellr merged 1 commit into
open-telemetry:mainfrom
observIQ:271-modify-status-reporting-section-of-the-spec-to-allow-omitting-status-on-reconnect

Conversation

@andykellr

@andykellr andykellr commented Feb 12, 2026

Copy link
Copy Markdown
Contributor

Implementation of optimization described here open-telemetry/opamp-spec#271

The main difference is that runOneCycle in client/wsclient.go now takes a sendFirstMessage bool and only passes true on the first iteration. The rest of the changes are minor updates to comments, log messages, and tests.

@andykellr
andykellr requested a review from a team as a code owner February 12, 2026 00:16
@codecov

codecov Bot commented Feb 12, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 66.66667% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 82.19%. Comparing base (623ef46) to head (dfb5a15).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
client/wsclient.go 66.66% 3 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #512      +/-   ##
==========================================
+ Coverage   82.15%   82.19%   +0.04%     
==========================================
  Files          28       28              
  Lines        2157     2162       +5     
==========================================
+ Hits         1772     1777       +5     
  Misses        262      262              
  Partials      123      123              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@andykellr
andykellr marked this pull request as draft February 12, 2026 03:00
@andykellr

Copy link
Copy Markdown
Contributor Author

Marked this as draft until the opamp-spec change is merged.

@andykellr
andykellr force-pushed the 271-modify-status-reporting-section-of-the-spec-to-allow-omitting-status-on-reconnect branch from 4a8c638 to dfb5a15 Compare February 17, 2026 21:43
Comment thread client/wsclient.go
Comment on lines 434 to 445
func (c *wsClient) runUntilStopped(ctx context.Context) {
// Iterates until we detect that the client is stopping.
sendFirstMessage := true
for {
if c.common.IsStopping() {
return
}

c.runOneCycle(ctx)
c.runOneCycle(ctx, sendFirstMessage)
sendFirstMessage = false
}
}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

As mentioned in the PR comment, this is the primary change in this PR.

@andykellr
andykellr marked this pull request as ready for review February 17, 2026 21:45
@andykellr
andykellr merged commit f68db34 into open-telemetry:main Feb 18, 2026
11 of 12 checks passed
@andykellr
andykellr deleted the 271-modify-status-reporting-section-of-the-spec-to-allow-omitting-status-on-reconnect branch February 18, 2026 19:44
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.

3 participants