Skip to content

Allow lib users to omit path tag

Compare
Choose a tag to compare
@mikerott mikerott released this 04 Jan 21:40
· 10 commits to master since this release
e7e2d4c

Users of the library may now set an OmitPathTag config boolean to instruct the behavior to omit setting the path tag on emitted metrics. It is desirable to omit the path in cases where this lib is used as common middleware (aka "tripperware") for client code making API calls to APIs that use varied path params (like GET /v1/api/thing/{id} where {id} can vary by hundreds of thousands or worse. Omitting the tag with such a varied breadth of possible values eliminates the risk of "cardinality explosion" at the metrics host (SFX, Datadog, etc).