合成セッション

[Session] ページを使用して、合成セッションを分析します。合成セッションは、1 つの合成テストを構成するイベントの完全なシーケンスを記録したものです。セッションは 1 つのページをカバーでき、スクリプト化されたジョブの場合には複数のページに拡張できます。設定されているスケジュール済みジョブのタイムゾーンに関係なく、すべてのセッションのタイムスタンプはローカル時間になります。

セッションはシーケンスの最初のナビゲーション開始時に始まり、最後のページが完全に読み込まれるまで続きます。単一ページセッションの場合は、ページが完全にロードされるとき(メトリック Visually Complete によって表されるセッション時間)にセッションが開始し、終了します。ブラウザ RUM 分析およびネットワークリクエスト分析と同様、[合成セッション(Synthetic Sessions)] ビューでは、すべての合成セッションの結果を分析できます。ブラウザ RUM の分析 ネットワークリクエストの分析

注: 単一ページアプリケーション(SPA)の場合、セッションにはベースページとその仮想ページが 1 ページのベースページとして含められます。

セッション ステータス(Session Status)

セッションは、次の 4 つのステータスのいずれかになります。

  • OK:テストが正常に実行され、データが返されました。
  • WARNING:テストは正常に実行されましたが、アクセスできないリソースがありました。
  • BROKEN:ジョブにエラーがあります。スクリプトコンソール出力でエラーを見つけることができます。
    • 単一 URL ジョブでは、テストで 4xx 応答を受け取っています。
    • スクリプト化されたジョブでは、不明な例外がスクリプトによってスローされています。これは、テスト対象のページにない要素に対してクリックのようなアクションを実行しようとした場合などに発生します。
  • FAILED:合成テストでサイトの問題が検出されました。失敗したジョブのステータスが FAILED の場合、イベントは作成され、エラーがあったことを確認するためにジョブは再度実行されます。
    • 単一 URL ジョブでは、次のいずれかが発生しています。
      • ブラウザが URL に到達できなかった
      • ブラウザが 5xx 応答を受け取った
      • セッションがタイムアウトした
    • スクリプト化されたジョブでは、スクリプトでアサーションエラーまたはタイムアウトが発生しています。

セッション UI

記録

[レコード(Records)]タブでは、個々のリクエストをスキャンし、関心のあるデータセットを正確に取得するためにフィルタ処理およびソートできます。

記録

[Session Visual Time] と [Duration] の値が一致しない場合があります。これは、[Session Visual Time] が視覚的な完了時間の平均であり、[Duration] がページロード時間の合計であるために発生する可能性があります。

メトリックの定義

  • Session Visual Time:ジョブ内のすべてのページの視覚的な完了時間の平均。
  • Visually Complete:ページの視覚的な完了時間は、ページのコンテンツ全体と比較して、ブラウザが表示可能なコンテンツのレンダリングを完了した時点です。
  • Duration:期間またはセッション期間は、ジョブ内のすべてのページのページロード時間と、スクリプト内の他の実行ロジックにかかった時間の合計です。
  • Page load time:ページのコンテンツ全体をダウンロードしてブラウザウィンドウに表示するためにかかる時間。

セッションの詳細

特定のセッションを選択して [View Details] をクリックすると、ページのロードウォーターフォールやリソースの表形式の詳細などの詳細情報が表示されます。複数ページのセッションでは、左側のナビゲーションを使用すると、シーケンスから各ページを選択できます。

セッションの詳細

ビジネストランザクション

ビジネスおよびブラウザアプリケーションに関連付けられたビジネストランザクションがある場合は、そのブラウザアプリケーションから、ビジネスアプリケーションに要求を出して、ビジネストランザクションを合成セッションで取得する合成ジョブを作成することもできます。ビジネストランザクションは、[Session Details] ダイアログの [ウォーターフォール(Waterfall)] および [ビジネストランザクション(Business Transactions)] タブで表示できます。

ウォーターフォールのリソースの横に View Snapshot > が表示される場合、関連付けられているビジネストランザクションがあったことを示しています。これをクリックすると、バックエンドからビジネス トランザクション スナップショットに移動します。

また、[ビジネストランザクション(Business Transactions)] タブをクリックし、このリクエストが開始したサーバー側ビジネストランザクションのリストを表示することもできます。クリックすると、関連する [Business Transaction] ダッシュボードまで移動します。

スクリプトの出力

スクリプトを使用した場合は、クリックするとスクリプトの出力を表示できます。

スクリプトの出力

スクリプトの出力をクリップボードにコピーする場合は [Copy to Clipboard] をクリックし、スクリプトの出力をダウンロードする場合は [Download] をクリックします。

セッション スクリーンショット

合成では、ジョブの実行時にブラウザのスクリーンショットをキャプチャします。デフォルトでは、ページのレンダリングが終了すると、ページごとに 1 つのスクリーンショットが取得されます。スクリーンショットは 30 日間保持されます。

スクリプト化されたジョブでは、スクリプトから API を呼び出して、ページあたり最大 10 のスクリーンショットを取得できます。スクリーンショットは、ビューポートの完全に可視化されたコンテンツのものです(ブラウザのクロームは含まれません)。

次に示す [スクリーンショット(Screenshots)] タブには、200 X 150 の画像としてスクリーンショットが表示されます。スクリーンショットの解像度は、スクリーンショットが取得されたデバイスの解像度と同じです。

スクリーンショット

[ウォーターフォール(Waterfall)] タブには、視覚的に完了したスクリーンショットと、スクリプトによってトリガーされたカスタムスクリーンショット(次のスクリーンショットの screenshot2 など)が含まれます。

チャート

[チャート(Charts)] タブには、作成したデータセットを事前定義に従って可視化する一連のウィジェットが表示され、ダッシュボードを作成できます。ウィジェットの削除、再追加、サイズ変更、ドラッグアンドドロップができます。

セッション

Analyze Session Results

You understand the results of your synthetic jobs through sessions. From session details, you can determine if there were errors, what type of errors, and diagnose what factors are affecting performance. The following sections show you how to analyze synthetic session results for errors and performance issues.

Errors

Determine Type of Error

At this time, you should be able to determine the type of error by the Status and Error Type fields. The session status indicates whether your jobs are passing, failing (there is a problem with the system being tested), or broken (there is a problem with the job itself). The Error Type field gives more information about the cause of the error.

Understand the Error

  1. From the Sessions > Records tab, select a session with an error and click View Details.
  2. From the Session Details dialog, you can view when the error occurred and the returned error message in the Waterfall tab.
  3. If your job used a custom script, you can click Show Script Output to view the script results. You can download or copy the results as well.
  4. You can also view the screenshot to see how the error might be manifested to end users. You might want to display the errors in a more user-friendly way and possibly omit error details.

Performance

One of the best ways to see if your job is having performance issues is to view widgets representing aggregated metrics in the Charts tab. With a quick glance, you can see if there are site availability issues, where end users might be having bad user experiences, how long sessions are lasting, and how long it's taking for pages to be visually complete.

Network Latency

The Waterfall tab shows you a timeline of when resources are loaded and plots the events First Byte, DOM Ready, Load Event, and Visually Complete that mark significant and discreet moments from the time the browser receives data until the user can see a complete page.

To understand session performance, you can compare the end user response time (the same as the onload time) of a page with the session duration. This gives you an idea of which pages are taking too long to load and how that might be affecting the session.

You can also click one of the bars to determine if a resource is taking a long time to load. For example, if an image is taking too long to load, you can take actions to optimize the loading time such as caching the image, reducing its size, confirm that the image is the size that you’re displaying it, or not use the image at all.

Problematic Resources

The Session Details dialog shows you the final session state and the session state set by each page. The final session state is indicated in the top-left corner, whereas, the session state set by each page is shown in the Page Views in Session sidebar. In the screenshot below, the icon indicates that the first page set the session status to "Warning". From the Waterfall tab, you can also discover which resources didn't load, either marked in yellow for the "Warning" state or in red for the "Failed" state.

The Resources tab shows you the number of resources by category, the domains requested, and key performance metrics that you can use to sort the results. You can quickly identify resources that are slowing the page load and potential DNS problems.

Resources

You can also configure your synthetic jobs to check the availability of resources. You can set the session status to Failed or Warning when resources are unavailable. See Configure Availability Rules for configuration instructions. When the session status is set to Failed or Warning, Browser Synthetic Monitoring triggers corresponding events that can be used to create alerts. This enables you to be alerted when resources are missing. See Alerts for Browser Synthetic Monitoring to learn how to create availability policies.

View the Effects of Performance Issue

Screenshots will show you what your user is seeing. From the screenshot, you can determine whether the content has completely loaded (text, images, containers, UI components) and the page is styled correctly (CSS).

From the Waterfall tab, you can determine when the screenshot (visually complete) and view a small thumbnail by hovering over the camera icon.

Page Details

By navigating to the Screenshots tab and double-clicking the screenshot, you can view a larger screenshot to see details such as the styling, UI components, and content.