Add comment about active request count attributes (#8221)

This commit is contained in:
Trask Stalnaker 2023-04-05 14:40:51 -07:00 committed by GitHub
parent 8aeffa5e80
commit 832549744b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -102,6 +102,8 @@ public final class HttpServerMetrics implements OperationListener {
context);
return;
}
// it's important to use exactly the same attributes that were used when incrementing the active
// request count (otherwise it will split the timeseries)
activeRequests.add(-1, applyActiveRequestsView(state.startAttributes()), context);
Attributes durationAndSizeAttributes =
applyServerDurationAndSizeView(state.startAttributes(), endAttributes);