Skip to content
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 setting initial heartbeat interval #305

Merged
merged 3 commits into from
Oct 28, 2024

Conversation

haoqixu
Copy link
Member

@haoqixu haoqixu commented Oct 23, 2024

Add a HeartbeatIntervalSecond option to StartSettings to allow setting initial heartbeat interval.

resolve #303

@haoqixu haoqixu requested a review from a team as a code owner October 23, 2024 08:37
Copy link

codecov bot commented Oct 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77.24%. Comparing base (22263c7) to head (74a2880).
Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #305      +/-   ##
==========================================
+ Coverage   77.20%   77.24%   +0.03%     
==========================================
  Files          25       25              
  Lines        2299     2303       +4     
==========================================
+ Hits         1775     1779       +4     
  Misses        420      420              
  Partials      104      104              

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

client/types/startsettings.go Outdated Show resolved Hide resolved
client/wsclient_test.go Show resolved Hide resolved
client/wsclient_test.go Outdated Show resolved Hide resolved
client/wsclient_test.go Outdated Show resolved Hide resolved
} else {
assert.Never(t, func() bool {
return msgCount.Load() >= 2
}, 50*time.Millisecond, 10*time.Millisecond)
Copy link
Member

Choose a reason for hiding this comment

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

This has a chance of failing to catch an unexpected heartbeat if the heartbeat is delayed, but I think that's fine.

client/httpclient_test.go Outdated Show resolved Hide resolved
@tigrannajaryan tigrannajaryan merged commit 36a1afd into open-telemetry:main Oct 28, 2024
7 checks passed
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.

Allow setting initial heartbeat interval
2 participants