question

Babar Q. avatar image
Babar Q. asked ·

User Tag - Server Side Request Attribute

Dear All,

The request attribute works on the server-side to capture the User ID/Name but the same is not working for the user tagging.

  1. Installed Dynatrace OneAgent (1.165.238)
  2. Supported Dynatrace OneAgent (1.162)
  3. No adaptive policy issue.

What could be the reason?

Regards,

Babar

request attributesuser tagging
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

Sebastian K. avatar image
Sebastian K. answered ·

Babar, do you see this request attribute when you drill down to pure path from user action?

Sebastian

4 comments Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

Hello @sebastian k.

After reviewing the below screenshot, please correct me if I misunderstood your question.

Regards,

Babar

0 Likes 0 · ·
1570686635560.png (4.4 KiB)
1570687575967.png (35.7 KiB)
1570687680105.png (35.5 KiB)

Hi I was thinking about missing purepath for some of user Session because of dynatrace purepath limit per minute. But in such case only some of sessions should stay untagged.

Sebastian

0 Likes 0 · ·

Hello @sebastian k.

How to rectify this situation?

Regards,

Babar

0 Likes 0 · ·

Wrong path :) There has to be different issue.

Sebastian

0 Likes 0 · ·
Radu S. avatar image
Radu S. answered ·

Hi Babar,

What version is your cluster?

As I can see on the Preview link, this hit GA only in v 1.175.

Best regards,

Radu

9 comments Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

Hello @Radu S.

Cluster Version 1.176.133.20190920-140938

Regards,

Babar

0 Likes 0 · ·

Thank you for the reply.
On these PurePaths which have the User ID, can you do a backtrace all the way to the RUM Application?

0 Likes 0 · ·

Hello @Radu S.

Yes, tagged actions are reaching to the RUM application.

I can see the following information:

Regards,

Babar

0 Likes 0 · ·
1570694666410.png (107.2 KiB)
1570694696279.png (90.9 KiB)

Hi Babar,

That does not seem to go to a RUM-enabled application. Your backtrace has only one node (the service which you started the backtrace). Hence why you're seeing "Requests to ..." but not "Requests from ...". Also, the last node of the backtrace (which needs to be a RUM-enabled application) needs to show User Actions.

Only User Actions are mapped to a User Session. So the problem is that the PurePaths where you are collecting User ID are not actually directly associated with any User Action of a RUM-enabled application and so it's impossible for us to use that attribute to tag sessions.

Here's a visual example:

0 Likes 0 · ·
1570696329043.png (94.8 KiB)

Hello @Radu S.

Is this related or our request attribute configuration on the Dynatrace or something related to application design?

Dynamic requests are tagged with the request attribute tag.

How to make it work?

Regards,

Babar

0 Likes 0 · ·
1570698451169.png (25.9 KiB)

Hi @Babar Q.

The request attribute is configured correctly, because we are capturing it. However I am unsure your application is monitored correctly.

You need to ensure the following:

  • When you go to Applications, your application is listed there. This means OneAgent is correctly injecting the JS for RUM tracking and we are getting user sessions and user actions.
  • From the Applications page, click on the application, then click the tile which says "Services" then click on "view service flow" from below:
  • The request attribute you configured must be present on one of the services that appear in the service flow.

If any of these steps don't work, you need to resolve it.

From what I can see, your backtrace didn't lead to an Application. So that's a good place to start understanding if you're monitoring your application correctly.


0 Likes 0 · ·
1570698230809.png (89.6 KiB)

Hello @Radu S.

No services detected.

I can see the request attributes (in the form of tag) in the dynamic requests.

One more thing to share that till now we did not instrument the Web Servers which will be instrumented soon.

Regards,

Babar

0 Likes 0 · ·
1571033888103.png (32.8 KiB)
1571034276889.png (17.6 KiB)
1571034307124.png (17.3 KiB)

Then you've found your problem.

Unless Application is tied to Service which has Requests with the attribute, you cannot use that attribute to tag your sessions because we have no idea what sessions those requests belong to.

Possibly when you're going to instrument the web servers, and the RUM injection will be done directly via OneAgent, then your attribute can be used for tagging sessions.

0 Likes 0 · ·

Hello @Radu S.

I wanted to share with you that after instrumenting the web servers, the request attribute is working perfectly fine for the user tagging.

Regards,

Babar

0 Likes 0 · ·
Akshay M. avatar image
Akshay M. answered ·

Please check if you have correctly mentioned where the attribute is stored, and steps are correctly configured.
Also, please share screenshot of the configuration for review.

1 comment Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

Hello @Akshay M.

The configuration is done correctly and I can see the Users ID in the request attribute on the server-side.

Regards,

Babar

0 Likes 0 · ·