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

This product reached the end of support date on March 31, 2021.

Missing method arguments after defining sensors

FranciscoGarcia
Dynatrace Organizer
Dynatrace Organizer

Hi all

A customer is trying to build a BT to capture a purepath's argument to getTiempoejecucion (execution time) and then split it by other arguments such as getCliente (client) or getUsuario (user). They have:

protectedString logParametros() {
final StringBuilder sb = new StringBuilder();
sb.append("[Clase=");
sb.append(this.getClass().toString());
sb.append("]");
sb.append("[transacconNegocio=");
sb.append(this.getTransaccionNegocio());
sb.append("]");
sb.append("[inicioEjecucion=");
sb.append((Object)this.getInicioEjecucion());
sb.append("]");
sb.append("[finEjecucion=");
sb.append((Object)this.getFinEjecucion());
sb.append("]");
sb.append("[tiempoEjecucion=");
sb.append(this.getTiempoEjecucion());
sb.append("]");
sb.append("[usuario=");
sb.append(this.getUsuario());
sb.append("]");
sb.append("[cliente=");
sb.append(this.getCliente());
sb.append("]");
sb.append("[perfil=");
sb.append(this.getPerfil());
sb.append("]");
sb.append("[mensajeError=");
sb.append(this.getMensajeError());
sb.append("]");
sb.append("[errorMsg=");
sb.append(this.getErrorMsg());
sb.append("]");
return sb.toString();
}

And have defined sensors for these methods

On the methods dashboard, they only see some of these methods appearing. (IE:We can see gettiempoEjecucion but not getUsuario). Same thing on the purepath, methods like getUsuario don't seem to be invoked but they are certain they get called. Any idea what we could be doing wrong?

2 REPLIES 2

gabriel_casella
Dynatrace Pro
Dynatrace Pro

Did you check whether they are deployed on the specific(s) agnet(s)? (Agents Overview, select agent, deployed sensors tab on the bottom)

Also, if that is a real quick and small method it may be necessary to disable the "Ignore getter and setter methods" on sensors group configuration (although the doc says it is for get and set, it also applies to other small methods).

FranciscoGarcia
Dynatrace Organizer
Dynatrace Organizer

Thanks Gabriel. It seems like the getter and setter option did the trick!