elastic / elastic/apm-agent-java

Add ability for automatic URL path pattern discovery

Open
#774 2 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Java
Stars
594
Forks
338
Avg merge
1d 13h
Merged PRs (30d)
25

Description

When [the `use_path_as_transaction_name` config option](https://www.elastic.co/guide/en/apm/agent/java/current/config-http.html#config-use-path-as-transaction-name) is used, this can lead to transaction name explosion if path parameters are used. For this purpose, we also have [the `url_groups` config option](https://www.elastic.co/guide/en/apm/agent/java/current/config-http.html#config-url-groups), but it requires (possibly complex) user configuration.
By applying the algorithm presented [in this POC](https://github.com/eyalkoren/warehouse/tree/master/url-pattern-recognition/src/eyal/koren/url/recognition), the agent can auto-discover URL path patterns and use them as transaction names.

The additional advantage of implementing this now is that we will have the option of testing this algorithm, which we may want to employ in the future to facilitate head-based sampling.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.