Open otternq opened 3 years ago
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).
:memo: Please visit https://cla.developers.google.com/ to sign.
Once you've signed (or fixed any issues), please reply here with @googlebot I signed it!
and we'll verify it.
ℹ️ Googlers: Go here for more info.
@googlebot I signed it!
Updates
ochttp.Transport
to accept an optionalFormatStatsPath
which is supplied toochttp.statsTransport
.FormatStatsPath
can override a request URL's path parameter to reduce cardinality for stats similar toFormatSpanName
.This should be useful when a resource id is part of a request path such as
/posts/1
or/posts/2
. Currently each resource is treated as a unique path but it would be nice to optionally treat these requests as a single path.Without FormatStatsPath specified
With FormatStatsPath specified