Skip to main content

Custom Network Rollup Rules

Embrace provides automatic collapsing of network paths to group similar paths together for analytics purposes. We automatically collapse certain path elements if they match a common pattern, and we also group endpoints that have a similar prefix. This heuristic can be good enough for most cases, but sometimes it is necessary to override the behavior.

On the network settings page you can specify a list of desired groupings (or network rollup rules) that you want to apply to your endpoints. When we process a network request, we apply all the network rollup rules in sequence, where the first|last match wins.

Screenshot of settings page with network rollup rules

Custom rules are applied on the backend on a going forward basis.

Rules Reference

We currently provide the following patterns:

  • «wildcard» - Matches any single path segment
  • «**» - Matches any number of path segments
  • «ext:file_extension» - Matches a string ending with a period and a 2 to 5 character extension.

Sample Use Cases

Collapsing High Cardinality Fields

If you have an endpoint with a high cardinality field, such as a UUID, you may want to collapse all requests to that endpoint into a single group. You can achieve this by using the «wildcard» rule to collapse all the requests into a single group.


This will collapse the following requests:


Preventing Collapsing of Specific Endpoints

You may have a specific endpoint that you do not want to collapse at all. In our previous example we may not want to collapse the test-user endpoint since we use that for testing purposes. We can achieve this by adding a rule that exactly matches the endpoint and placing it after the wildcard rule.


Since the last rule wins, this setup will collapse all endpoints except for the test-user endpoint.

Collapse CDN Images

You can collapse endpoints for third-party SDKs into a single groups. For example, CDNs will have a large number of path segments with a common prefix.


You can collapse all the requests to the CDN into a single group by using the «**» rule and an extension rule «ext:jpg». Here's the new rule: