skywalking-java/apm-sniffer/optional-plugins/trace-ignore-plugin
SevenPointOld a7ecb9aa9c Add introduce doc to incubating features menu (#1265)
* provides a optional-plugin for tracking ignores enhancement(#1203)

* trace ignore plugin config support override by system.env

* optimize the trace ignore plugin and make normalization of pom

* add AntPathMatcher and an junit test for it

* No longer rely on the spring framework

* add license at file header

* rebuild pom and rewrite README

* rebuild optional-plugins pom

* clean up useless code

* modify junit

* rewrite the ant path match logic

* rename the matcher class

* add the trace ignore plugin introduce doc to incubating features menu.

* modify the README doc.

* remove Chinese in English doc.

* remove superfluous content of EN-doc.

* Update README.md
2018-05-25 17:55:57 +08:00
..
src provides a optional-plugin for tracking ignores enhancement(#1203) (#1213) 2018-05-24 08:49:19 +08:00
README.md Add introduce doc to incubating features menu (#1265) 2018-05-25 17:55:57 +08:00
README_CN.md Add introduce doc to incubating features menu (#1265) 2018-05-25 17:55:57 +08:00
apm-trace-ignore-plugin.config provides a optional-plugin for tracking ignores enhancement(#1203) (#1213) 2018-05-24 08:49:19 +08:00
pom.xml Add introduce doc to incubating features menu (#1265) 2018-05-25 17:55:57 +08:00

README.md

Support custom trace ignore

Here is an optional plugin apm-trace-ignore-plugin

Introduce

  • The purpose of this plugin is to filter custom services which are expected to ignore from the tracing system.
  • You can set up multiple URL path patterns, The services matches these patterns means won't be traced and analysis by agent and collector.
  • The current matching rule follows Ant Path match style , like /path/*, /path/**, /path/?.
  • Copy apm-trace-ignore-plugin-x.jar to agent/plugins, restarting the agent can effect the plugin.

How to configure

There are two ways to configure ignore patterns. Settings through system env has higher priority.

  1. Set through the system environment variable,you need to add skywalking.trace.ignore_path to the system variables, the value is the path that you need to ignore, multiple paths should be separated by ,
  2. Copy/agent/optional-plugins/apm-trace-ignore-plugin/apm-trace-ignore-plugin.config to /agent/config/ dir, And add settings
trace.ignore_path=/your/path/1/**,/your/path/2/**