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

RUM JavaScript version specific user session

AntonPineiro
DynaMight Guru
DynaMight Guru

Hi,

We can check how RUM JavaScript version distribution is in a web application.

Is it possible to see, from Dynatrace, which JavaScript version is being used in a specific user session?

Thank you.
Best regards

❤️ Emacs ❤️ Vim ❤️ Bash ❤️ Perl
6 REPLIES 6

ChadTurner
DynaMight Legend
DynaMight Legend

you can check each app in the developer tools: 

ChadTurner_0-1685014478261.png

Dynatrace now offers the ability to set the RUM JS Version app by app along with a Global Rule. 

You can also pull it from the API: 

ChadTurner_1-1685014642255.png

 

-Chad

Hi Chad,

Thank you for your answer.

This is more in relation analize a user session is not LIVE and it is not mine. Something like from here:

AntonPineiro_0-1685016936768.png

Or using USQL, it means, historical information to know which user sessions where using some JS version library.
I am not sure if I am explaining correctly.

Thank you again.

Best regards

❤️ Emacs ❤️ Vim ❤️ Bash ❤️ Perl

You could leverage the session properties: 

ChadTurner_0-1685038268125.png

 

-Chad

Hi Chad,

I cannot see JS version write in the "<script type>". Where have you found it?

Thank you so much!

Best regards

❤️ Emacs ❤️ Vim ❤️ Bash ❤️ Perl

you'll need to add it as a string property in the application settings. 

-Chad

Hi Chad,

Thank you again. I see where it is. Let me explain a bit.

We can see "ruxitagentjs_ICA27NVfjqrux_10265230425083909" in the CSS selector "head > script". And JavaScript version is showed here (in bold): ruxitagentjs_ICA27NVfjqrux_10265230425083909.

That is exact RUM JavaScript version used, 1.265 in this example. I have just confirmed it with Dynatrace ONE.

My last question is regarding transform or extract that value. We can create a cleanup rule using this regex for example "ruxitagentjs_\w+_(\d{5})":

AntonPineiro_0-1685123924056.png

I can capture "10265". Do you know a better way? Were you able to tranform it to 1.265 from there?

Thank you again.

Best regards

❤️ Emacs ❤️ Vim ❤️ Bash ❤️ Perl

Featured Posts