Skip to content

Commit 35ada9d

Browse files
committed
[frontend] fix RUM instrumentation by updating deprecated properties
RUM instrumentation is broken, since we are relying on latest version from CDN and v1 was released with breaking changes. Updated the following configs based on https://github.com/signalfx/splunk-otel-js-web/blob/main/CHANGELOG.md#100 - beaconUrl -> beaconEndpoint - app -> applicationName - environment -> deploymentEnvironment - rumAuth -> rumAccessToken
1 parent aa26964 commit 35ada9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/frontend/templates/header.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<link rel='shortcut icon' type='image/x-icon' href='/static/favicon.ico' />
1717
{{- if and $.rum_realm $.rum_auth }}
1818
<script src="https://cdn.signalfx.com/o11y-gdi-rum/latest/splunk-otel-web.js" type="text/javascript"></script>
19-
<script>window.SplunkRum && window.SplunkRum.init({beaconUrl: "https://rum-ingest.{{ $.rum_realm }}.signalfx.com/v1/rum", rumAuth: "{{ $.rum_auth }}"{{ if $.rum_app_name }}, app: "{{ $.rum_app_name }}"{{ end }}{{ if $.rum_environment }}, environment: "{{ $.rum_environment }}"{{ end }}{{ if $.rum_debug }}, debug: "true"{{ end }}});</script>
19+
<script>window.SplunkRum && window.SplunkRum.init({beaconEndpoint: "https://rum-ingest.{{ $.rum_realm }}.signalfx.com/v1/rum", rumAccessToken: "{{ $.rum_auth }}"{{ if $.rum_app_name }}, applicationName: "{{ $.rum_app_name }}"{{ end }}{{ if $.rum_environment }}, deploymentEnvironment: "{{ $.rum_environment }}"{{ end }}{{ if $.rum_debug }}, debug: "true"{{ end }}});</script>
2020
{{- end }}
2121
</head>
2222

0 commit comments

Comments
 (0)