ブラウザ RUM セッション

このページでは、ブラウザ RUM セッションと、セッションデータを表示するために使用する [Session UI] について説明します。

Browser RUM Session

A Browser RUM session is a collection of chronological events for a particular end user from the start of a session to a configurable period of inactivity. An event represents an activity occurring at the moment in time that can be recorded, aggregated, and correlated at certain levels. In Browser RUM, events are limited to page loads, virtual page loads, iFrames, and Ajax requests.

注: Only Ajax requests configured to be published to the Events Service are included in sessions.

For example, when a user purchases product from an e-commerce site, the session might capture the page/virtual page loads, iFrames, or Ajax requests for the user logging in (start), selecting and paying for products, and logging out (end).

This figure describes how the user's actions cause events that are tracked in the session.Page Visited Session Details

RUM Sessions Importance

You can think of sessions as a time-based context to analyze a user's experience interacting with an application. By examining RUM sessions, you can understand how your applications are performing and how users are interacting with them. This enables you to better manage and improve your application, whether that means modifying the UI or optimizing performance.

Use Cases

In some use cases, you can use RUM sessions to analyze a user's or a group's behavior. You analyze a user's behavior based on the user's unique ID across multiple sessions in what is called sniping. In addition, you can query for a segment of users with similar behavior, such as visiting a certain specific page or using a particular device. This technique of grouping users with similar behavior is called bucketing. Browser RUM sessions allow you to query users on a wide array of criteria such as the type of browser, device, location, landing page, IP address, and more.

How EUM Captures RUM Sessions

The JavaScript Agent loads a temporary GUID into the browser local storage and then transmits beacons to the EUM Cloud or EUM Server that include this GUID. We can then use the GUID to track the user's device over the duration of one or more sessions. The EUM Cloud then publishes these events into a session record stored in the Events Service.

セッションの持続性

セッションは、コントローラで設定したユーザの非アクティブ期間に到達するまで保持されます。また、GUID がローカルストレージから削除された場合もセッションを終了することができます。これには、いくつかの理由が考えられます。たとえば、ユーザがローカルストレージをクリアしたり、ブラウザを閉じたときにローカルストレージをクリアするようにブラウザを設定したりすることができます。

最大セッション時間

セッションの時間は、技術的には制限されていません。代わりに、イベントの最大数を 1000 件に制限しています。ただし、セッション モニタリング タイムアウトを設定して各イベントの最大時間を設定し、設定されたセッションの非アクティブタイムアウトを 1000 で乗算することで、セッションの最大時間を導出することができます。たとえば、イベントごとにセッションの非アクティブタイムアウトを 5 分に設定すると、最大セッション時間は 5000 分になります。もちろん、この場合は、エンドユーザが最大時間の 5 分より前にイベントをトリガーするため、ほとんどのセッションが 5000 分までかかることはありません。

単一ページ/複数ページのセッション

ブラウザがローカルストレージに GUID を書き込むことができない場合、ブラウザ RUM は 1 つ以上のセッションでユーザのデバイスを追跡できません。代わりに、ブラウザ RUM はメモリ内の一時的な GUID を使用して、1 ページまたは複数の仮想ページセッションを作成します。仮想ページは、動的に作成され、現在のページにロードされる DOM のセクションにすぎません。

Browser RUM Support for Sessions

JavaScript Agent Version Requirement for Sessions

You are required to use the JavaScript Agent >= 4.2. Older versions of the JavaScript Agent do not support sessions.

Browser Requirements for Sessions

To use Browser RUM sessions, your browser is required to support for the following:

Browser RUM sessions do not support beacons implemented with GIFs.

Session Limits

The table below lists the limits for session operations per account.

Session Operations Maximum Per Account
Stored session resource snapshots 10k per minute
Pending uploads of resource timing snapshots 100k
Published session beacons 10k per minute
Tracked sessions 5k per minute
警告: After the pending uploads of resource timing snapshots reach 100k, no further resource-timing snapshots are queued.

Sessions UI

As in Browser RUM Analyze, the main Sessions page is made up of two tabs:

Records

The Records tab lets you scan individual sessions and allows you to filter and sort to get exactly the data in which you are interested.

Sessions

Click View Details or double-click an item to see the information for a specific session. The sequence of page views for the session is shown on the left side of the screen. Select a specific page view to see detailed information, including a page load waterfall, tabular details for resources, and, if your backend is instrumented with Splunk AppDynamics, correlated server-side business transactions.

Session Summary

Charts

The Charts tab provides you with a set of predefined widgets of the data set you have created plus a custom widget builder. As with the Charts tab of the Analyze UI, you can delete, re-add, resize, and drag-and-drop to move the widgets.

Sessions