Schedule demo

Custom APIs in Real User Monitor


Custom APIs perform different functions including setting dynamic values for user IDs, capturing Javascript (JS) errors, specifying session timeout, and more. Applications Manager provides custom API support to set the username. For this, you have to write a script to capture the username based on the application from cookie, DOM, etc where the username resides. Once the username is captured, you can call our custom API, which will further set the username in RUM. Refer to know more about capturing username in Real User Monitor.

Note:
  • Custom APIs are supported only from Applications Manager version 16400 and RUM Agent version 3.2.
  • Only 250 characters are allowed in the username.
  • Below special characters if present, will be removed from the captured username :
      `~!@#$^&_|+=?;'",<>(){}[]

Types of Custom APIs supported by Applications Manager

TypeDescriptionSyntax
Capture User NameBy default, a unique user ID is generated by the RUM script for each users. You can implement the provided syntax, to capture username for the user ID. Capture User Name API will be useful when you want to track metrics or debug issues specific to a particular user.apmr('userName',"user@test.com");
Capture Js ErrorsUsing the provided syntax, Js errors can be manually captured and sent to RUM Agent servers.try {
unKnownFunction();
} catch(err) {
apmr('captureException',err);
}
Add Custom Breadcrumbs"Add Custom Breadcrumbs" API is used to set custom breadcrumbs for easy identification in JS errors.apmr('addBreadCrumbs',"setTimeoutFunction");
End Current User SessionThis API will help you to end the current session and start the next page navigation as a new session. You can make use of the given syntax for it.apmr('endCurrentSession');

Loved by customers all over the world

"Standout Tool With Extensive Monitoring Capabilities"

It allows us to track crucial metrics such as response times, resource utilization, error rates, and transaction performance. The real-time monitoring alerts promptly notify us of any issues or anomalies, enabling us to take immediate action.

Reviewer Role: Research and Development

carlos-rivero
"I like Applications Manager because it helps us to detect issues present in our servers and SQL databases."
Carlos Rivero

Tech Support Manager, Lexmark

Trusted by over 6000+ businesses globally