skywalking icon indicating copy to clipboard operation
skywalking copied to clipboard

apm-trace-ignore-plugin failed to filter interface /actuator/health

Open suruns opened this issue 6 years ago • 12 comments

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

suruns avatar May 21 '20 06:05 suruns

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.

wu-sheng avatar May 21 '20 06:05 wu-sheng

1.这个endpoint只有一个span,2我是全名称匹配,没有使用正则之类的

suruns avatar May 21 '20 06:05 suruns

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.

wu-sheng avatar May 21 '20 06:05 wu-sheng

image 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

suruns avatar May 21 '20 06:05 suruns

org.apache.skywalking.apm.plugin.trace.ignore.TraceIgnoreExtendService this is the class i modified

suruns avatar May 21 '20 06:05 suruns

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.

wu-sheng avatar May 21 '20 06:05 wu-sheng

thanks, I make an attempt

suruns avatar May 21 '20 07:05 suruns

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!

DerekHQ avatar Jun 15 '20 09:06 DerekHQ

It's been renamed. Its real name is WEBFLUX.handle

suruns avatar Jun 15 '20 09:06 suruns

how to fix it?

luckywur avatar Mar 25 '22 00:03 luckywur

Try to use this config.

trace.ignore_path=GET:/actuator/*

shelltea avatar Mar 31 '22 02:03 shelltea

Try to use this config.

trace.ignore_path=GET:/actuator/*

nb!!!

zhangam avatar Jun 06 '22 08:06 zhangam