Skip to content

Commit 09a2c1b

Browse files
committed
scenario 3 some rum updates
1 parent 8d09700 commit 09a2c1b

File tree

12 files changed

+71
-125
lines changed

12 files changed

+71
-125
lines changed
Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,33 @@
11
---
2-
title: 2. Example of RUM enablement in your Website
3-
linkTitle: 2. Using RUM on your Website
4-
menuPost: " <i class='fa fa-user-ninja'></i>"
2+
title: 2. RUM instrumentation in a browser app
3+
linkTitle: 2. RUM instrumentation
54
weight: 2
65
---
76

8-
* Check the original HEAD section of your Online-boutique webpage (or use the examples here) in your browser
9-
* Find the Web address of your workshop hosts Online Boutique
10-
* Compare the changes made to the hosts Online-Boutique and compare with the base one.
7+
* Check the HEAD section of the Online-boutique webpage in your browser
8+
* Find the code that instruments RUM
119

1210
---
1311

1412
## 1. Browse to the Online Boutique
1513

16-
If you have access to an EC2 instance and have previously installed the Online Boutique as part of the APM session, you can view it on port 81 of the EC2 instance's IP address.
17-
18-
If you have not got access to an EC2 instance with the Online Boutique installed then your workshop instructor will provide you with the Online Boutique URL that does not have RUM installed so that you can complete the next steps.
14+
Your workshop instructor will provide you with the Online Boutique URL that has RUM installed so that you can complete the next steps.
1915

2016
## 2. Inspecting the HTML source
2117

2218
The changes needed for RUM are placed in the `<head>` section of the hosts Web page. Below is the updated `<head>` section with the changes required to enable RUM:
2319

24-
![Online Boutique](../images/ViewRUM-HEAD-html.png)
20+
![Online Boutique](../images/rum-inst.png)
2521

26-
The first three lines (marked in red) have been added to the `<head>` section of the host Web page to enable RUM Tracing, the last three (marked in blue) are optional and used to enable Custom RUM events.
22+
This code enables RUM Tracing, [Session Replay](https://docs.splunk.com/observability/en/rum/rum-session-replay.html), and [Custom Events](https://docs.splunk.com/observability/en/rum/RUM-custom-events.html) to better understand performance in the context of user workflows:
2723

2824
* The first part is to indicate where to download the Splunk Open Telemetry Javascript file from: `https://cdn.signalfx.com/o11y-gdi-rum/latest/splunk-otel-web.js` (this can also be hosted locally if so required).
29-
* The second line defines the location where to send the traces to in the beacon url: `{beaconUrl: "https://rum-ingest.eu0.signalfx.com/v1/rum"`
25+
* The next section defines the location where to send the traces to in the beacon url: `{beaconUrl: "https://rum-ingest.eu0.signalfx.com/v1/rum"`
3026
* The RUM Access Token: `rumAuth: "<redacted>"`.
31-
* Identification tags `app` and `environment` to indentify in the SPLUNK RUM UI e.g. `app: "ksnq-store", environment: "ksnq-workshop"}`
27+
* Identification tags `app` and `environment` to indentify in the SPLUNK RUM UI e.g. `app: "frontend-demo-us-store", environment: "frontend-demo-us"}` (these values will be different in your workshop)
3228

33-
{{% notice title="Info" style="info" %}}
34-
In this example the app name is **ksnq-store**, this will be different in the Workshop. Check with your host what the app name and environment to use in the RUM session will be and make a note of it!
35-
{{% /notice %}}
29+
The above lines 21 and 23-30 are all that is required to enable RUM on your website!
3630

37-
The above two lines are all that is required to enable RUM on your website!
31+
Lines 22 and 31-34 are optional if you want Session Replay instrumented.
3832

39-
The (blue) optional section that uses `var tracer=Provider.getTracer('appModuleLoader');` will add a custom event for every page change allowing you to better track your website conversions and usage.
33+
Line 36-39 `var tracer=Provider.getTracer('appModuleLoader');` will add a Custom Event for every page change, allowing you to better track your website conversions and usage.

content/en/scenarios/3-optimize-end-user-experiences/2-rum/3-rum-landing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ weight: 3
1010

1111
## 1. Visit the RUM Landing Page
1212

13-
Login into your Splunk IM/APM/RUM Website. From the left side menu bar select **RUM** ![RUM-ico](../images/RUM_ico.png?classes=inline&height=25px). This will bring you to your the RUM Landing Page.
13+
Login into Splunk Observability. From the left side menu bar select **RUM** ![RUM-ico](../images/RUM_ico.png?classes=inline&height=25px). This will bring you to your the RUM Landing Page.
1414

1515
The goal of this page is to give you in a single page, a clear indication of the health, performance and potential errors found in your application(s) and allow you to dive deeper into the information about your User Sessions collected from your web page/App. You will have a pane for each of your active RUM applications. (The view below is the default expanded view)
1616

content/en/scenarios/3-optimize-end-user-experiences/2-rum/4-browser-summary.md

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ weight: 4
55
---
66

77
* Get familiar with the UI and options available from this landing page
8-
* Identify Page Views/Errors and Request/Errors and Java Script Errors in a single view </br>
8+
* Identify Page Views/JavaScript Errors and Request/Errors in a single view </br>
99
Check the Web Vitals metrics and any Detector that has fired for in relation to your Browser Application
1010

1111
---
1212

13-
## 1. Application Summary Dashboard Overview
13+
## Application Summary Dashboard
1414

15-
### 1.1. Header Bar
15+
### 1.Header Bar
1616

1717
As seen in the previous section the RUM Application Summary Dashboard consists of 5 major sections.</br>
1818
The first section is the selection header, where you can collapse the Pane via the ![RUM-browser](../images/browser.png?classes=inline&height=25px) Browser icon or the **>** in front of the application name, which is *jmcj-store* in the example below. It also provides access to the *Application Overview* page if you click the link with your application name which is *jmcj-store* in the example below.
@@ -21,17 +21,13 @@ Further, you can also open the *Application Overview* or *App Health Dashboard*
2121

2222
![RUM-SummaryHeader](../images/summaryHeader.png)
2323

24-
First use the *View Dashboard* link to open the Browser App Health Dashboard which should open in a new tab. Then switch back to original RUM tab, and then use the *Open Application Overview* link, or click on the name of the app to launch the Application Overview dashboard.
24+
For now, let's look at the high level information we get on the application summary dashboard.
2525

26-
We will looking at the *Application Overview* and *Browser App Health* Dashboards in detail in the following sections.
26+
The RUM Application Summary Dashboard is focused on providing you with *at a glance* highlights of the status of your application.
2727

28-
## 2. Application Overview
28+
### 2. Page Views / JavaScript Errors & Network Requests / Errors
2929

30-
The RUM Application Overview Dashboard is focused on providing you with *at a glance* overview of the status of your application.
31-
32-
### 2.1. Page Views / Errors & Network Requests / Errors
33-
34-
The first section shows *Page Views / Errors*, & *Network Requests and Errors* charts show the quantity and trend of these issues in your application. This could be Javascript errors, or failed network calls to back end services.
30+
The first section shows *Page Views / JavaScript Errors*, & *Network Requests and Errors* charts show the quantity and trend of these issues in your application. This could be Javascript errors, or failed network calls to back end services.
3531

3632
![RUM-chart](../images/Rum-chart.png)
3733

@@ -41,7 +37,7 @@ You can see the count of the Page Views / Network Requests / Errors by hovering
4137

4238
![RUM-chart-clicked](../images/RUM-Chart-Clicked.png)
4339

44-
### 2.2. JavaScript Errors
40+
### 3. JavaScript Errors
4541

4642
With the second section of the RUM Application Summary Dashboard we are showing you an overview of the JavaScript errors occurring in your application, along with a count of each error.
4743

@@ -51,23 +47,23 @@ In the example above you can see there are three JavaScript errors, one that app
5147

5248
If you click on one of the errors a pop-out opens that will show a summary (below) of the errors over time, along with a Stack Trace of the JavaScript error, giving you an indication of where the problems occurred. (We will see this in more detail in one of the following sections)
5349

54-
![RUM-javascript-chart](../images/expandedRUmJAVAscript-error.png)
50+
![RUM-javascript-chart](../images/type-error-detail.png)
5551

56-
### 2.3. Web Vitals
52+
### 4. Web Vitals
5753

58-
The third section of the RUM Application Summary Dashboard is showing you the crucial (google) Web Vitals, three metrics, that are used by Google in its ranking system, and give a very good indication of the speed of your site for your end users.
54+
The next section of the RUM Application Summary Dashboard is showing you [Google's Core Web Vitals](https://web.dev/articles/vitals), three metrics that are not only used by Google in its search ranking system, but also quantify end user experience in terms of loading, interactivity, and visual stability.
5955

6056
![WEB-vitals](../images/RUM-QuickWebVitals.png)
6157

6258
As you can see our site is well behaved and scores *Good* for all three Metrics. These metrics can be used to identify the effect changes to your application have, and help you improve the performance of your site.
6359

64-
If you click on any of the Metrics shown in the Web Vitals pane you will be taken to the corresponding Tag Spotlight Dashboard. e.g. clicking on the **Largest Contentful Paint (LCP)** chartlet, you will be taken to a dashboard similar to the screen shot below, that gives you timeline and table views for how this metric has performed. This should allow you to spot trends and identify where the problem may be more common, such as an OS or browser version, .
60+
If you click on any of the Metrics shown in the Web Vitals pane you will be taken to the corresponding Tag Spotlight Dashboard. e.g. clicking on the **Largest Contentful Paint (LCP)** chartlet, you will be taken to a dashboard similar to the screen shot below, that gives you timeline and table views for how this metric has performed. This should allow you to spot trends and identify where the problem may be more common, such as an operating system, geolocation, or browser version.
6561

6662
![WEB-vitals-tag](../images/RUM-Tag-Spotlight.png)
6763

68-
### 2.4. Most Recent Detectors
64+
### 5. Most Recent Detectors
6965

70-
The fourth and final section of the RUM Application Summary Dashboard is focused on providing you an overview of any detector that has triggered for your application. We have created a detector for this screen shot but your pane will be empty for now, but we will add some detectors to your site and make sure they are triggered in one of the next sections.
66+
The final section of the RUM Application Summary Dashboard is focused on providing you an overview of recent detectors that have triggered for your application. We have created a detector for this screen shot but your pane will be empty for now. We will add some detectors to your site and make sure they are triggered in one of the next sections.
7167

7268
![detectors](../images/rum-detector.png)
7369

@@ -76,5 +72,7 @@ In the screen shot you can see we have a critical alert for the *RUM Aggregated
7672
![alert](../images/click-alert.png)
7773

7874
---
79-
75+
{{% notice title="Exercise" style="green" icon="running" %}}
8076
Please take a few minutes to experiment with the RUM Application Summary Dashboard and the underlying chart and dashboards before going on to the next section.
77+
{{% /notice %}}
78+

content/en/scenarios/3-optimize-end-user-experiences/2-rum/5-analyzing-metrics.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,16 @@ First, we see page load and route change information, which can help us understa
4444

4545
![Page load and route change charts](../images/page-load-route-change.png)
4646

47-
Google has defined Core Web Vitals to quantify the user experience as measured by loading, interactivity, and visual stability.
47+
Next, Google has defined Core Web Vitals to quantify the user experience as measured by loading, interactivity, and visual stability. Splunk RUM builds in Google's thresholds into the UI, so you can easily see if your metrics are in an acceptable range.
4848

4949
![Core Web Vitals charts](../images/core-web-vitals-overview.png)
5050

5151
* **Largest Contentful Paint (LCP)**, measures loading performance. How long does it take for the largest block of content in the viewport to load? To provide a good user experience, LCP should occur within 2.5 seconds of when the page first starts loading.
5252
* **First Input Delay (FID)**, measures interactivity. How long does it take to be able to interact with the app? To provide a good user experience, pages should have a FID of 100 milliseconds or less.
5353
* **Cumulative Layout Shift (CLS)**, measures visual stability. How much does the content move around after the initial load? To provide a good user experience, pages should maintain a CLS of 0.1. or less.
5454

55+
Improving Web Vitals is a key component to optimizing your end user experience, so being able to quickly understand them and create detectors if they exceed a threshold is critical.
56+
5557
Google has some great resources if you want to learn more, for example [the business impact of Core Web Vitals](https://web.dev/case-studies/vitals-business-impact).
5658

5759
### 2.3. Front-end health

content/en/scenarios/3-optimize-end-user-experiences/2-rum/_index.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@ description: End-to-end visibility helps you pinpoint customer-impacting issues
55
weight: 2
66
---
77

8-
With RUM instrumented, you will be able to better understand your end users, what they are doing, and what issues they are encountering.
8+
With [RUM](https://docs.splunk.com/observability/en/rum/intro-to-rum.html) instrumented, we will be able to better understand our end users, what they are doing, and what issues they are encountering.
99

10-
This workshop walks through how our demo site is instrumented and how to interpret the data. If you already have a RUM license, this will still help you understand how RUM works and how you can use it to optimize your end user experience.
10+
This workshop walks through how our demo site is instrumented and how to interpret the data. If you already have a RUM license, this will help you understand how RUM works and how you can use it to optimize your end user experience.
11+
12+
Our Docs also contain guidance such as [scenarios using Splunk RUM](https://docs.splunk.com/observability/en/rum/rum-scenario-library/scenario-landingpage.html) and demo applications to test out [RUM for mobile apps](https://docs.splunk.com/observability/en/rum/sample-app.html).
1113

1214
![Architecture Overview](images/rum-architecture.png)
Binary file not shown.
Binary file not shown.
416 KB
Loading
463 KB
Loading

content/en/scenarios/3-optimize-end-user-experiences/5-detectors/2-rum-detector.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ Let's say we want to know about an issue in production without waiting for a tic
1717

1818
1. Change the alert severity and add a recipient if you'd like, and click Activate to save the Detector.
1919
![](https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2024-02-16/ea3895cc-f7fb-419a-aed6-d3a944b0131a/ascreenshot.jpeg?tl_px=0,838&br_px=1719,1799&force_format=png&width=1120.0&wat=1&wat_opacity=0.7&wat_gravity=northwest&wat_url=https://colony-recorder.s3.us-west-1.amazonaws.com/images/watermarks/FB923C_standard.png&wat_pad=140,464)
20-
#### [Made with Scribe](https://scribehow.com/shared/RUM_detector__wa0x0tahTjqJNI6Ye1FI0w)
2120

2221

2322

0 commit comments

Comments
 (0)