-
Notifications
You must be signed in to change notification settings - Fork 5k
Add histogram and output metrics for output latency #37445
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
Changes from 3 commits
57f44c5
945ae29
c700468
34166a6
0b01546
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -114,6 +114,7 @@ func (c *syncClient) Publish(_ context.Context, batch publisher.Batch) error { | |
| } | ||
|
|
||
| for len(events) > 0 { | ||
| begin := time.Now() | ||
|
||
| // check if we need to reconnect | ||
| if c.ticker != nil { | ||
| select { | ||
|
|
@@ -163,6 +164,8 @@ func (c *syncClient) Publish(_ context.Context, batch publisher.Batch) error { | |
|
|
||
| return err | ||
| } | ||
| took := time.Since(begin) | ||
| st.ReportLatency(took) | ||
| } | ||
|
|
||
| batch.ACK() | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.