apm-trace-ignore-plugin failed to filter interface /actuator/health
Please answer these questions before submitting your issue.
- Why do you submit this issue?
- [x] Question or discussion
- [x] Bug
- [x] Requirement
- [ ] Feature or performance improvement
Question
- apm-trace-ignore-plugin failed to filter interface /actuator/health
Bug
-
Which version of SkyWalking, OS and JRE? skywalking7.0 linux, jre 1.8.0.201
-
Which company or project?
-
What happen? If possible, provide a way for reproducing the error. e.g. demo application, component version.
i use skywalking moniter my platform,which is based on spring cloud implementation. i want filter interface /actuator/health, i use apm-trace-ignore-plugin and copy it from optional-plugins to plugins, and set up filter config file, which write 'trace.ignore_path=/v1/catalog/services,/actuator/health,Lettuce/'. but the web ui tracking interface only still has ‘/actuator/health’ endpoints,other such as Lettuce/ is successful.
Requirement or improvement
- Please describe about your requirements or improvement suggestions. i want to filter the endpoints i write in apm-trace-ignore-plugin.config
This plugin is to filter the segment's first span. You need to make sure whether it is matched. Please try to debug locally. Once the Lettuce/ is successful works, I would not say this is a code level issue.
1.这个endpoint只有一个span,2我是全名称匹配,没有使用正则之类的
English only. And still, local debug is much better than you ask here. At least you have more detail, we could do a more meaningful discussion.
Asking me to guess has not much meaning, and is not very helpful for you.
I modified the code to print all endpoints, but I didn't see ‘/actuator/health‘ in the log, but this endpoint was included on the page
org.apache.skywalking.apm.plugin.trace.ignore.TraceIgnoreExtendService this is the class i modified
That means, ‘/actuator/health‘ isn't the one creating the segment. Suggest you consider other plugin works first, such as Tomcat container, jetty plugin, etc.
The name showing in the segment doesn't mean it is the first span. EntrySpan has an operation name override mechanism.
Look closer and dig deeper.
thanks, I make an attempt
I has this problem too! I found out that ignore '/actuator/health' base in Servlet project is ok, but in Webflux project is not work!
It's been renamed. Its real name is WEBFLUX.handle
how to fix it?
Try to use this config.
trace.ignore_path=GET:/actuator/*
Try to use this config.
trace.ignore_path=GET:/actuator/*
nb!!!