cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to instrument methods to get timing

alejandro_herna
Organizer

When looking at stack frames on purepaths we notice that it doesn't display timing information for methods because they are not instrumented:


This is just a sample, these are not the methods we would like to instrument.

How can we instrument them so we get timing information?

 

4 REPLIES 4

skrystosik
DynaMight Guru
DynaMight Guru

For now there are two options I think, one is creating custom service based on those methods, second is creating request attribute (the method has to be instrumented to provide argument or return value, so timings should also be available. For now I think there is no option to instrument method just for timings.

Regards,
Sebastian


Regards, Sebastian

Hi,

Sebastian is right. Customer services are the way to go here. They were exactly built for this, to get timings for methods that are not covered by out-of-the-box sensors.

Best

Harry

kristopher_sarp
Observer

Three years later...is it still not possible to get method timings?

theharithsa
Dynatrace Pro
Dynatrace Pro

Hi @kristopher_sarp 
We get this from many paces. As you might know, there is an option to instrument methods via OneAgent SDK feature which will give you timing information as you are expecting. You can instrument the method using SDK and then you can get the timing details for it. 

Love more, hate less; Technology for all, together we grow.