Welcome!

Blog Feed Post

Simplified agentless real user monitoring setup

As a web application developer, there are a few key questions you need to answer before selecting a 3rd party library. Before deciding on a library you want to know what the performance impact of the new library will be on your application, whether or not the library will be compliant with your existing standards, and how much deployment effort the new library will require. This is why at Dynatrace we work hard to ensure that the JavaScript code we use to measure your application’s real user experience both supports your monitoring needs and won’t violate your existing standards or security policies.

Consider performance

It’s a good idea to load scripts as late as possible so as to minimize any impact on page load time and users’ first impressions of your application. This is why tools like PageSpeed Insights highlight blocking JavaScript tags and provide suggestions for either moving them further down, loading them asynchronously, or even inlining their content into each page.

However, using blocking script tags guarantees that your JavaScript code will be executed exactly where you place it. If you need a script to run as early as possible (for example, the wrapping of an XmlHttpRequest object before it’s used), you can’t postpone execution using a defer flag or some other method. One solution for avoiding such additional blocking requests during page load is to simply inline your script code. However, this requires inlining your script into each document, thereby propagating the data of a single cached file into every page of your application. Now, combining these two approaches gives you an inline JavaScript snippet that performs the necessary initialization and defers loading of the big bulk of the code to a second script.

Consider standards & security policies

Certain development standards that aim to make web applications more secure and/or faster typically introduce new limitations. The Content Security Policy (CSP) standard, for example, was introduced to minimize the chance of becoming a victim of cross-site scripting. Therefore one of the limitations of CSP is that inline JavaScript code isn’t allowed. This means that you have to use a simple JavaScript tag to inject your JavaScript code.

The AMP project, on the other hand, aims to provide a framework that enables you to build web apps that are consistently fast across all devices and distribution platforms. So a limitation of AMP is that self-developed and 3rd party JavaScript code aren’t allowed—only scripts that are provided by AMP can be used.

To monitor an AMP application with Dynatrace

  1. Click Deploy Dynatrace in the navigation menu.
  2. Click the Setup agentless or AMP monitoring button.
  3. Set the My application relies on Accelerated Mobile Pages (AMP) switch to the On position, as shown below.

Consider maintenance effort

With the automatic injection of JavaScript code, you don’t have to worry about maintenance at all. Dynatrace OneAgent automatically inserts the latest tag for you automatically. However, with agentless monitoring, you have to insert the tags yourself. And you definitely want to ensure that this requires as little manual effort as possible. Therefore you do not want to have to change your code every time your configuration changes, or every time a new version is released. The code snippet you add to your application never needs to change as it takes care of loading the right configuration and version for you.

Select an insertion method

Picking the right JavaScript tag insertion method depends on your application and your requirements. You have four options for doing this, with Asynchronous code snippets being the default option. This approach provides the best balance between good performance and zero maintenance effort.

To select an agentless real user monitoring approach

  1. Select Applications from the navigation menu.
  2. Select the application you want to configure.
  3. Click the Browse […] button.
  4. Click Edit.
  5. Within Application settings, select Setup.
  6. Select an insertion method from the Insert monitoring code droplist. You have four available options to choose from (see descriptions below).
Insertion method Description
JavaScript tag Requires that you manually insert a JavaScript tag into the HTML head of each application page. This approach is compliant with Content Security Policy. You must update the tag each time you change the configuration or when new JavaScript code versions become available.
Sync code snippet Requires that you manually insert a code snippet into the HTML head of each application page. The snippet automatically loads the latest JavaScript code version and configuration. You never need to update the code snippet.
Async code snippet Requires that you manually insert a code snippet into the HTML head of each application page. The snippet asynchronously loads the latest JavaScript code version and configuration. This approach reduces impact on page load, however visibility may be reduced as some XHR calls may not be instrumented. You never need to update the tag.
Inline code Requries that you manually insert the full JavaScript code inline into the HTML head of each application page. You must update this tag each time you change the configuration or when new JavaScript code versions become available.

REST APIs

Dynatrace also offers a REST API that enables you to automatically retrieve the latest snippet for your application. In this way, you can automatically inject the latest snippet during build time of your application. You’ll find the JavaScript tags you need in the REST API of the Agentless real user monitoring setup settings page (see below).

Ready to give agentless real user monitoring a try?

All newly created Dynatrace environments automatically provide these new settings. For existing Dynatrace environments, you must upgrade your OneAgent installations to OneAgent v1.127 or higher and then contact us so that we can enable these new options for your environment.

The post Simplified agentless real user monitoring setup appeared first on Dynatrace blog – monitoring redefined.

Read the original blog entry...

More Stories By APM Blog

APM: It’s all about application performance, scalability, and architecture: best practices, lifecycle and DevOps, mobile and web, enterprise, user experience

Latest Stories
Coca-Cola’s Google powered digital signage system lays the groundwork for a more valuable connection between Coke and its customers. Digital signs pair software with high-resolution displays so that a message can be changed instantly based on what the operator wants to communicate or sell. In their Day 3 Keynote at 21st Cloud Expo, Greg Chambers, Global Group Director, Digital Innovation, Coca-Cola, and Vidya Nagarajan, a Senior Product Manager at Google, will discuss how from store operations...
SYS-CON Events announced today that IBM has been named “Diamond Sponsor” of SYS-CON's 21st Cloud Expo, which will take place on October 31 through November 2nd 2017 at the Santa Clara Convention Center in Santa Clara, California.
SYS-CON Events announced today that Ryobi Systems will exhibit at the Japan External Trade Organization (JETRO) Pavilion at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Ryobi Systems Co., Ltd., as an information service company, specialized in business support for local governments and medical industry. We are challenging to achive the precision farming with AI. For more information, visit http:...
As you move to the cloud, your network should be efficient, secure, and easy to manage. An enterprise adopting a hybrid or public cloud needs systems and tools that provide: Agility: ability to deliver applications and services faster, even in complex hybrid environments Easier manageability: enable reliable connectivity with complete oversight as the data center network evolves Greater efficiency: eliminate wasted effort while reducing errors and optimize asset utilization Security: imple...
High-velocity engineering teams are applying not only continuous delivery processes, but also lessons in experimentation from established leaders like Amazon, Netflix, and Facebook. These companies have made experimentation a foundation for their release processes, allowing them to try out major feature releases and redesigns within smaller groups before making them broadly available. In his session at 21st Cloud Expo, Brian Lucas, Senior Staff Engineer at Optimizely, will discuss how by using...
Transforming cloud-based data into a reportable format can be a very expensive, time-intensive and complex operation. As a SaaS platform with more than 30 million global users, Cornerstone OnDemand’s challenge was to create a scalable solution that would improve the time it took customers to access their user data. Our Real-Time Data Warehouse (RTDW) process vastly reduced data time-to-availability from 24 hours to just 10 minutes. In his session at 21st Cloud Expo, Mark Goldin, Chief Technolo...
The next XaaS is CICDaaS. Why? Because CICD saves developers a huge amount of time. CD is an especially great option for projects that require multiple and frequent contributions to be integrated. But… securing CICD best practices is an emerging, essential, yet little understood practice for DevOps teams and their Cloud Service Providers. The only way to get CICD to work in a highly secure environment takes collaboration, patience and persistence. Building CICD in the cloud requires rigorous ar...
In this strange new world where more and more power is drawn from business technology, companies are effectively straddling two paths on the road to innovation and transformation into digital enterprises. The first path is the heritage trail – with “legacy” technology forming the background. Here, extant technologies are transformed by core IT teams to provide more API-driven approaches. Legacy systems can restrict companies that are transitioning into digital enterprises. To truly become a lead...
SYS-CON Events announced today that Daiya Industry will exhibit at the Japanese Pavilion at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Ruby Development Inc. builds new services in short period of time and provides a continuous support of those services based on Ruby on Rails. For more information, please visit https://github.com/RubyDevInc.
SYS-CON Events announced today that CAST Software will exhibit at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 - Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. CAST was founded more than 25 years ago to make the invisible visible. Built around the idea that even the best analytics on the market still leave blind spots for technical teams looking to deliver better software and prevent outages, CAST provides the software intelligence that matter ...
When it comes to cloud computing, the ability to turn massive amounts of compute cores on and off on demand sounds attractive to IT staff, who need to manage peaks and valleys in user activity. With cloud bursting, the majority of the data can stay on premises while tapping into compute from public cloud providers, reducing risk and minimizing need to move large files. In his session at 18th Cloud Expo, Scott Jeschonek, Director of Product Management at Avere Systems, discussed the IT and busine...
Is advanced scheduling in Kubernetes achievable? Yes, however, how do you properly accommodate every real-life scenario that a Kubernetes user might encounter? How do you leverage advanced scheduling techniques to shape and describe each scenario in easy-to-use rules and configurations? In his session at @DevOpsSummit at 21st Cloud Expo, Oleg Chunikhin, CTO at Kublr, will answer these questions and demonstrate techniques for implementing advanced scheduling. For example, using spot instances ...
As businesses evolve, they need technology that is simple to help them succeed today and flexible enough to help them build for tomorrow. Chrome is fit for the workplace of the future — providing a secure, consistent user experience across a range of devices that can be used anywhere. In her session at 21st Cloud Expo, Vidya Nagarajan, a Senior Product Manager at Google, will take a look at various options as to how ChromeOS can be leveraged to interact with people on the devices, and formats th...
First generation hyperconverged solutions have taken the data center by storm, rapidly proliferating in pockets everywhere to provide further consolidation of floor space and workloads. These first generation solutions are not without challenges, however. In his session at 21st Cloud Expo, Wes Talbert, a Principal Architect and results-driven enterprise sales leader at NetApp, will discuss how the HCI solution of tomorrow will integrate with the public cloud to deliver a quality hybrid cloud e...
SYS-CON Events announced today that Yuasa System will exhibit at the Japan External Trade Organization (JETRO) Pavilion at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Yuasa System is introducing a multi-purpose endurance testing system for flexible displays, OLED devices, flexible substrates, flat cables, and films in smartphones, wearables, automobiles, and healthcare.