Skip to content

Allow setting initial heartbeat interval#305

Merged
tigrannajaryan merged 3 commits into
open-telemetry:mainfrom
haoqixu:main
Oct 28, 2024
Merged

Allow setting initial heartbeat interval#305
tigrannajaryan merged 3 commits into
open-telemetry:mainfrom
haoqixu:main

Conversation

@haoqixu

@haoqixu haoqixu commented Oct 23, 2024

Copy link
Copy Markdown
Member

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
@codecov

codecov Bot commented Oct 23, 2024

Copy link
Copy Markdown

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.

Comment thread client/types/startsettings.go Outdated
Comment thread client/wsclient_test.go
Comment thread client/wsclient_test.go Outdated
Comment thread client/wsclient_test.go Outdated
Comment thread client/wsclient_test.go
} else {
assert.Never(t, func() bool {
return msgCount.Load() >= 2
}, 50*time.Millisecond, 10*time.Millisecond)

Copy link
Copy Markdown
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.

Comment thread client/httpclient_test.go Outdated
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