apm-agent-rum-js icon indicating copy to clipboard operation
apm-agent-rum-js copied to clipboard

Browser name is not coming after the event is triggered

Open Suraj-Gupta-ML opened this issue 3 years ago • 2 comments

Hi @devcorpio , browser name is coming for some applications inuser_agent.name. does agent handle anything related to the browser ?

Suraj-Gupta-ML avatar Aug 01 '22 12:08 Suraj-Gupta-ML

Hi @suraj-dot-gupta,

The RUM agent does not handle User-Agent (UA) headers. That is something that the browser does automatically.

Let me know if I'm understanding correctly, there are transactions which not contain the User-Agent information, is that right?

The most likely reasons for having an empty agent.name are mentioned in the following two links

  • https://security.stackexchange.com/questions/195076/can-i-assume-that-an-empty-user-agent-will-always-be-a-robot
  • https://community.cloudflare.com/t/blocking-empty-user-agent-string/80589/2

Thanks, Alberto

devcorpio avatar Aug 01 '22 14:08 devcorpio

Hi @suraj-dot-gupta,

The RUM agent does not handle User-Agent (UA) headers. That is something that the browser does automatically.

Let me know if I'm understanding correctly, there are transactions which not contain the User-Agent information, is that right?

The most likely reasons for having an empty agent.name are mentioned in the following two links

  • https://security.stackexchange.com/questions/195076/can-i-assume-that-an-empty-user-agent-will-always-be-a-robot
  • https://community.cloudflare.com/t/blocking-empty-user-agent-string/80589/2

Thanks, Alberto

Thanks Alberto, yeah you are correct, i am not getting user agent for some transactions.

Suraj-Gupta-ML avatar Aug 03 '22 09:08 Suraj-Gupta-ML

Hi @suraj-dot-gupta,

Do you need thing anything else from our side? or should I close the issue?

Thanks, Alberto

devcorpio avatar Sep 05 '22 14:09 devcorpio