You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/en/ninja-workshops/1-automatic-discovery/2-petclinic-kubernetes/8-rum/1-rebuild-app.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,7 @@
2
2
title: Rebuild PetClinic with RUM enabled
3
3
linkTitle: 1. Rebuild PetClinic
4
4
weight: 1
5
+
hidden: true
5
6
---
6
7
7
8
At the top of the previous code snippet, there is a reference to the file `/static/env.js`, which contains/sets the variables used by RUM, currently these are not configured and therefore no RUM traces are currently being sent.
Copy file name to clipboardExpand all lines: content/en/ninja-workshops/1-automatic-discovery/2-petclinic-kubernetes/8-rum/1-rum-tour.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: Select the RUM view for the Petclinic App
3
-
linkTitle: 2. Verify RUM Data
4
-
weight: 2
3
+
linkTitle: 1. Verify RUM Data
4
+
weight: 1
5
5
---
6
6
7
7
Once RUM has been configured and you have added a visit for a pet, you can log in to **Splunk Observability Cloud** and verify that RUM traces are flowing in.
Copy file name to clipboardExpand all lines: content/en/ninja-workshops/1-automatic-discovery/2-petclinic-kubernetes/8-rum/2-rum-tour.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: RUM trace Waterfall view & linking to APM
3
3
linkTitle: 2. Follow RUM Traces
4
-
weight: 3
4
+
weight: 2
5
5
---
6
6
In the TAG Spotlight view, you are presented with all the tags associated with the RUM data. Tags are key-value pairs that are used to identify the data. In this case, the tags are automatically generated by the OpenTelemetry instrumentation. The tags are used to filter the data and to create the charts and tables. The Tag Spotlight view allows you detect trends in behavior and to drill down into a user session.
Copy file name to clipboardExpand all lines: content/en/ninja-workshops/1-automatic-discovery/2-petclinic-kubernetes/8-rum/3-rum-tour.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: RUM trace Waterfall view & linking to APM
3
-
linkTitle: 2. RUM Waterfall
4
-
weight: 4
3
+
linkTitle: 3. RUM Waterfall
4
+
weight: 3
5
5
---
6
6
7
7
We are now looking at the RUM Trace waterfall, this will tell you what happened during the session on the user device as they visited the page of our petclinic application.
Copy file name to clipboardExpand all lines: content/en/ninja-workshops/1-automatic-discovery/2-petclinic-kubernetes/8-rum/_index.md
+9-81Lines changed: 9 additions & 81 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,84 +5,16 @@ weight: 9
5
5
time: 10 minutes
6
6
---
7
7
8
-
To enable Real User Monitoring (RUM) instrumentation for your application, you need to add the Open Telemetry Javascript [**https://github.com/signalfx/splunk-otel-js-web**](https://github.com/signalfx/splunk-otel-js-web) snippet to your code.
8
+
To enable Real User Monitoring (RUM) instrumentation for an application, you need to add the Open Telemetry Javascript [**https://github.com/signalfx/splunk-otel-js-web**](https://github.com/signalfx/splunk-otel-js-web) snippet to the code base.
9
9
10
-
The Spring PetClinic application uses a single HTML page as the "index" page, that is reused across all pages of the application. This is the perfect location to insert the Splunk RUM Instrumentation Library as it will be loaded for all pages automatically.
10
+
The Spring PetClinic application uses a single [**index**](https://github.com/spring-petclinic/spring-petclinic-microservices/blob/main/spring-petclinic-api-gateway/src/main/resources/static/index.html)HTML page, that is reused across all views of the application. This is the perfect location to insert the Splunk RUM instrumentation library as it will be loaded for all pages automatically.
11
11
12
-
The following snippet is inserted into the **<head>** section of the `index.html` page:
12
+
The `api-gateway` service is already running the instrumentation and sending RUM traces to Splunk Observability Cloud and we will review the data in the next section.
// Realm or auth is empty, provide default values or skip initialization
42
-
console.log("Realm or auth is empty. Skipping Splunk Rum initialization.");
43
-
}
44
-
</script>
45
-
```
46
-
47
-
The above snippet of code has already been added to `index.html` in the repository you cloned earlier, but it is not yet activated, we will do that in the next section.
48
-
49
-
If you want you can verify the snippet, we added to the index.html by viewing the file:
50
-
51
-
{{< tabs >}}
52
-
{{% tab title="View index.html" %}}
53
-
54
-
```bash
55
-
more ~/spring-petclinic-microservices/spring-petclinic-api-gateway/src/main/resources/static/index.html
56
-
```
57
-
58
-
{{% /tab %}}
59
-
{{% tab title="Output" %}}
60
-
61
-
```text
62
-
<!DOCTYPE html>
14
+
If you want you can verify the snippet, you can view the page source in your browser by right-clicking on the page and selecting **View Page Source**.
0 commit comments