I wrote code for https://github.com/apache/skywalking/issues/4841 which does what Mandar is looking for. I could submit a PR for that but I'm curious what type of disasters are expected from this type of functionality. The code I'm using skips getters/setters, methods added by AOP, etc as those can be sensibly skipped. Do you think that makes it less disastrous or does the issue stem from possibly monitoring user code which is called too frequently?
On Fri, Mar 26, 2021 at 5:16 AM kezhenxu94@apache <[email protected]> wrote: > Did you move the plugin jar to the `plugin` folder? I remember it is an > optional plugin. > > > On Mar 26, 2021, at 17:10, Sheng Wu <[email protected]> wrote: > > > > Hi > > > > You haven't subscribed to the mail list, you need to send mail to > > [email protected]. Otherwise, you could miss the > reply. I > > added you in the reply list manually this time. > > > >> > > > 'plugin.jdkthreading.threading_class_prefixes=${THREADING_CLASS_PREFIX=my.package}' > > I am not sure why you are using this configuration, this seems strange. > > > >> But i am only interested with Hotspot methods > > I am not sure what do you mean hotspot methods? Are you meaning some > > specific methods? > > But you mentioned this > >> my.package > > Are you trying to instrument all of your own codes? That would be a > > disaster, even technically it is possible. > > > > Sheng Wu 吴晟 > > Twitter, wusheng1108 > > > > > > mandar alate <[email protected]> 于2021年3月26日周五 下午5:04写道: > > > >> Hi Team, > >> > >> > >> I have recently started exploring skywalking as APM tool. > >> > >> I am interested in looking at the time spent by methods/functions at > >> application layer. Basically an instrumentation sort of thing for the > JAVA > >> application. With Skywalking I just get 3 spans(methods) that have one > root > >> function and two DB execute functions. I tried adding the property > >> > >> > >> > 'plugin.jdkthreading.threading_class_prefixes=${THREADING_CLASS_PREFIX=my.package}' > >> > >> But this didnt work. I could still see only 3 spans in the dashboard for > >> the API being hit. Under Profile feature I can get the thread stack. > But i > >> am only interested with Hotspot methods. Am i missing something in > >> configuration? > >> > >> I want classes starting with particular pattern to be instrumented and > >> captured in trace. How can I achieve this? > >> > >> > >> > >> Thanks, > >> > >> Mandar > >> > > ————————— > Zhenxu Ke (柯振旭) > GitHub @kezhenxu94 > >
