Skip to content

Commit

Permalink
finagle-netty4: Change "connection_requests" stat to Debug verbosity
Browse files Browse the repository at this point in the history
Problem

This stat isn't all that helpful, mostly adding noise and cost to
operating services.

Solution

Change the stat to Debug level verbosity.

JIRA Issues: CSL-5313

Differential Revision: https://phabricator.twitter.biz/D391289
  • Loading branch information
Bryce Anderson authored and jenkins committed Nov 8, 2019
1 parent 77fd0f5 commit a6dc129
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ Note that ``PHAB_ID=#`` and ``RB_ID=#`` correspond to associated messages in com
Unreleased
----------

* finagle-netty4: Change the 'connection_requests' metric to debug verbosity.
``PHAB_ID=D391289``

19.11.0
-------

Expand Down Expand Up @@ -44,6 +47,7 @@ Runtime Behavior Changes

* finagle-serversets: `finagle/serverset2/stabilizer/notify_ms` histogram has been downgraded to
debug verbosity. ``PHAB_ID=D392265``
>>>>>>> master

Breaking API Changes
~~~~~~~~~~~~~~~~~~~~
Expand Down
2 changes: 1 addition & 1 deletion doc/src/sphinx/metrics/Transport.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ ServerBridge
ChannelRequestStatsHandler
<<<<<<<<<<<<<<<<<<<<<<<<<<

**connection_requests**
**connection_requests** `verbosity:debug`
A histogram of the number of requests received over the lifetime of a
connection.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.twitter.finagle.netty4.channel

import com.twitter.finagle.netty4.channel.ChannelRequestStatsHandler.SharedChannelRequestStats
import com.twitter.finagle.stats.StatsReceiver
import com.twitter.finagle.stats.{StatsReceiver, Verbosity}
import io.netty.channel._

private object ChannelRequestStatsHandler {
Expand All @@ -11,7 +11,7 @@ private object ChannelRequestStatsHandler {
* or server.
*/
class SharedChannelRequestStats(statsReceiver: StatsReceiver) {
val requestCount = statsReceiver.stat("connection_requests")
val requestCount = statsReceiver.stat(Verbosity.Debug, "connection_requests")
}
}

Expand Down

0 comments on commit a6dc129

Please sign in to comment.