Skip to content

Latest commit

 

History

History
22 lines (17 loc) · 1.22 KB

op_name_group_rule.md

File metadata and controls

22 lines (17 loc) · 1.22 KB

Operation Name Group Rule

Operation Name in auto instrumentation agent is unpredictable, some time, target application carries parameter in it, due to the parameter included in URI mostly. Those operation name are also as known endpoint name in most cases. Such as /api/checkTicket/tk/{userToken}.

We solved most of these cases, by leverage the parameter pattern path in framework, such as SpringMVC, Webflux, etc. But it is undetected in RPC client side, such as HTTP restful client. In this case, we have to ask the users to set the group rule manually.

All rules are supported to set through agent.config, system properties and system env, like other agent settings.

  • Config format, plugin.opgroup.plugin name.rule[rule name]=pattern regex expression

Multiple configuration items for a single plugin with different keys are supports, such as

  1. plugin.opgroup.resttemplate.rule[/rule1]=/path1
  2. plugin.opgroup.resttemplate.rule[/rule2]=/path2
  3. plugin.opgroup.resttemplate.rule[/rule2]=/path3

We have following plugins supporting operation name group.

Plugin Config Key Example
RestTemplate plugin.opgroup.resttemplate.rule plugin.opgroup.resttemplate.rule[/user/auth/{token}]=\/user\/auth\/.*