@dynatrace/rum-javascript-sdk 1.345.3 → 1.347.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/dist/api/global-adapter.d.ts +1 -1
  2. package/dist/api/global-adapter.js +1 -1
  3. package/dist/api/index.d.ts +1 -0
  4. package/dist/api/index.js +2 -1
  5. package/dist/api/interactions.js +1 -1
  6. package/dist/api/native-http.d.ts +22 -0
  7. package/dist/api/native-http.js +48 -0
  8. package/dist/api/promises/index.d.ts +1 -0
  9. package/dist/api/promises/index.js +2 -1
  10. package/dist/api/promises/native-http.d.ts +27 -0
  11. package/dist/api/promises/native-http.js +31 -0
  12. package/dist/api/promises/wait-for-agent.js +1 -1
  13. package/dist/api/promises/wait-for-native-http.d.ts +9 -0
  14. package/dist/api/promises/wait-for-native-http.js +18 -0
  15. package/dist/api/user-actions.js +1 -1
  16. package/dist/types/api/dynatrace-api-types.d.ts +8 -0
  17. package/dist/types/api/dynatrace-api-types.js +2 -1
  18. package/dist/types/api-typedoc.d.ts +1 -0
  19. package/dist/types/api-typedoc.js +2 -1
  20. package/dist/types/index.d.ts +1 -0
  21. package/dist/types/index.js +2 -1
  22. package/dist/types/native-http/index.d.ts +1 -0
  23. package/dist/types/native-http/index.js +2 -0
  24. package/dist/types/native-http/native-http.d.ts +46 -0
  25. package/dist/types/native-http/native-http.js +2 -0
  26. package/dist/types/rum-events/event-context/event-context.d.ts +17 -2
  27. package/dist/types/rum-events/event-context/event-context.js +3 -1
  28. package/dist/types/rum-events/rum-event-keys.d.ts +14 -1
  29. package/dist/types/rum-events/rum-event-keys.js +15 -2
  30. package/dist/types/rum-events/rum-internal-selfmonitoring-event.d.ts +9 -1
  31. package/dist/types/rum-events/rum-internal-selfmonitoring-event.js +9 -1
  32. package/dist/types/rum-events/rum-user-action-event.d.ts +25 -2
  33. package/dist/types/rum-events/rum-user-action-event.js +1 -1
  34. package/dist/types/rum-events/schema-versions.d.ts +1 -1
  35. package/dist/types/rum-events/schema-versions.js +2 -2
  36. package/dist/types/rum-events/shared-namespaces-and-fields/general-rum-error-fields.d.ts +25 -1
  37. package/dist/types/rum-events/shared-namespaces-and-fields/general-rum-error-fields.js +25 -1
  38. package/dist/types/rum-events/shared-namespaces-and-fields/general-rum-event-fields.d.ts +2 -2
  39. package/dist/types/rum-events/shared-namespaces-and-fields/general-rum-event-fields.js +1 -1
  40. package/dist/types/testing/snapshot-defaults.d.ts +1 -1
  41. package/dist/types/testing/snapshot-defaults.js +4 -1
  42. package/docs/1-overview.md +5 -0
  43. package/docs/3-useractions.md +42 -0
  44. package/docs/5-native-http.md +140 -0
  45. package/docs/6-standalone-health-check.md +4 -4
  46. package/docs/7-debug-information.md +991 -0
  47. package/package.json +28 -4
@@ -0,0 +1,991 @@
1
+ ---
2
+ title: RUM JavaScript DebugInformation
3
+ docGroup: rum-javascript-debug-information
4
+ ---
5
+
6
+ # RUM JavaScript DebugInformation
7
+
8
+ ## General Information
9
+
10
+ The RUM JavaScript has a built-in Health check.
11
+
12
+ On Version 1.337 or lower it can be invoked by calling
13
+
14
+ ```js
15
+ dynatrace.runHealthcheck();
16
+ ```
17
+
18
+ On Version 1.339 and higher it can be invoked by calling
19
+
20
+ ```js
21
+ await dynatrace.loadDebugTools();
22
+ dynatrace.debugtools.runHealthcheck();
23
+ ```
24
+
25
+ The output looks like this:
26
+
27
+ ![Healthcheck.png](healthcheck.png)
28
+
29
+ Findings have a severity assigned and are grouped by severity:
30
+
31
+ | **Level** | **Meaning** |
32
+ |--------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
33
+ | ❌ `ERROR` | A feature is completely broken with no usable fallback, AND the user can fix it — typically by correcting their configuration or addressing a runtime error in their integration. Immediate attention recommended. |
34
+ | ⚠️ `WARNING` | Something unexpected happened and data is being silently lost, or a feature is degraded but falls back to a reasonable default. The user may not notice without actively checking, but monitoring quality is affected. Any form of data drop — rate limiting, size limits, off state, browser limitations, or a discarded user action — belongs here. |
35
+ | ℹ️ `INFO` | A normal operational event useful for diagnosing behavior. No data is lost and no action is required. These messages describe expected lifecycle transitions (e.g. sessions starting, config versions loading, injection format detection). |
36
+ | 🔎 `VERBOSE` | Fine-grained trace-level events primarily useful for debugging internals. High-frequency details that are too noisy for routine monitoring but valuable when investigating a specific issue. |
37
+
38
+ ## Findings
39
+
40
+ ### ❌ Health check \<name\> failed unexpectedly: \<error\> {#-1}
41
+
42
+ An internal Health check threw an unexpected error while running. The affected check produced no results.
43
+
44
+ **Possible Causes:**
45
+ - A JavaScript API used by the Health check is broken or missing on the page.
46
+ - An exception was thrown inside a check that should normally never fail.
47
+
48
+ **Mitigation:**
49
+ - Check the other findings for broken APIs (e.g. native function overrides) that may be causing the crash.
50
+
51
+ ---
52
+
53
+ ### ❌ \<errorCode\>: \<errorReason\> {#-100}
54
+
55
+ The RUM JavaScript received an HTTP error response from the beacon endpoint.
56
+
57
+ **Possible Causes:**
58
+ - The beacon endpoint has been misconfigured.
59
+ - The beacon request is handled by something other than a beacon endpoint.
60
+ - There are valid cases where the beacon endpoint returns error codes.
61
+
62
+ **Mitigation:**
63
+ - Make sure the beacon endpoint is configured correctly.
64
+ - Make sure the infrastructure is not interfering with the beacon requests.
65
+ - Depending on the error code, it might be possible to fix the issue, or it might only be informational.
66
+
67
+ ---
68
+
69
+ ### ❌ Invalid or unparseable beacon response: \<response\> {#-101}
70
+
71
+ The Health check detected that the response to a beacon request was invalid. The response is expected to be a proper JSON.
72
+
73
+ **Possible Causes:**
74
+ - The beacon endpoint is not actually a OneAgent or BeaconForwarder and some other component is handling the request (very commonly the response would then e.g. contain a HTML page for a "File not found" error or something similar).
75
+ - Not every webserver of this application is running the OneAgent and the beacon is sent to an uninstrumented webserver → make sure all the webservers are instrumented.
76
+
77
+ **Mitigation:**
78
+ - Make sure the beacon endpoint is configured correctly.
79
+ - Make sure the infrastructure is not interfering with the beacon requests.
80
+
81
+ ---
82
+
83
+ ### ❌ Cookies are disabled or can't be set {#-102}
84
+
85
+ If both RUM Classic and RUM are active, RUM will also be disabled when setting cookies is not possible.
86
+
87
+ **Possible Causes:**
88
+ - Cookies are disabled in the browser.
89
+ - Cookies are blocked by browser settings.
90
+ - A script on the page intercepts `document.cookie` writes and drops cookies matching certain name patterns.
91
+ - A browser extension blocks cookies for the monitored origin.
92
+
93
+ **Mitigation:**
94
+ - Check if cookies are disabled in the browser.
95
+ - Check if any script on the page prevents cookies from being set.
96
+
97
+ ---
98
+
99
+ ### ❌ Got invalid origin from the `shareCrossOriginFrameInfo` configuration {#-103}
100
+
101
+ The `shareCrossOriginFrameInfo` configuration contains an origin value that is not valid. Cross-frame communication will not work correctly.
102
+
103
+ **Mitigation:**
104
+ - Review and correct the `shareCrossOriginFrameInfo` configuration in the application settings.
105
+ - Ensure origin values follow the format `https://example.com` (scheme + host, no trailing slash).
106
+
107
+ ---
108
+
109
+ ### ❌ Feature \<hash\> failed to initialize {#-104}
110
+
111
+ A RUM JavaScript feature module threw an error during its initialization phase. The affected feature will not be active, which may mean certain types of RUM data (e.g., resource timings, errors, or user actions) are not collected.
112
+
113
+ **Possible Causes:**
114
+ - Some JavaScript API on the page might be not working according to the specification.
115
+
116
+ **Mitigation:**
117
+ - Check the other findings to see if any JavaScript APIs are overridden and not working according to the specification (see MDN).
118
+
119
+ ---
120
+
121
+ ### ❌ Got an unsupported status code for the beacon response: \<responseCode\> {#-108}
122
+
123
+ When the RUM JavaScript receives an unsupported response code, this message will be shown.
124
+
125
+ **Possible Causes:**
126
+ - Most likely the beacon endpoint is not actually a OneAgent or BeaconForwarder and the request is handled by some other part of the infrastructure.
127
+ - Not every webserver of this application is running the OneAgent and the beacon is sent to an uninstrumented webserver → make sure all the webservers are instrumented.
128
+
129
+ **Mitigation:**
130
+ - Make sure the beacon endpoint is configured correctly.
131
+ - Make sure the infrastructure is not interfering with the beacon requests and they are correctly routed to a OneAgent or BeaconForwarder.
132
+
133
+ ---
134
+
135
+ ### ❌ / ⚠️ / ℹ️ Cookie "\<name\>" could not be set {#-200}
136
+
137
+ An attempt was made to write the cookie with the specified name, but after immediately reading it back, it was no longer available.
138
+
139
+ The severity reflects whether cookie storage is required for the current configuration:
140
+ - ❌ ERROR — cookie persistence is explicitly configured, so cookie failures directly affect data collection.
141
+ - ⚠️ WARNING — the effective storage mode is not yet known (if the Health Check is running in Standalone mode)
142
+ - ℹ️ INFO — another storage mode is active, so cookie failures do not affect data collection.
143
+
144
+ **Possible Causes:**
145
+ - Cookies are globally disabled in the browser or blocked by browser settings.
146
+ - A script on the page intercepts `document.cookie` writes and drops cookies matching certain name patterns.
147
+ - A browser extension blocks cookies for the monitored origin.
148
+ - The `SameSite` attribute is not configured correctly.
149
+
150
+ **Mitigation:**
151
+ - Verify that cookies are enabled and that the browser is not in a restricted mode (e.g. private browsing with strict settings).
152
+ - Check whether any script on the page overrides or wraps `document.cookie` and prevents writing cookies.
153
+ - Validate that the `SameSite` attribute is [configured correctly](https://docs.Dynatrace.com/docs/observe/digital-experience/web-applications/additional-configuration/configure-cookie-attributes#set-the-samesite-attribute).
154
+
155
+ ---
156
+
157
+ ### ❌ / ⚠️ / ℹ️ Cookie "\<name\>" was set but its value was modified (expected "\<expected\>", got "\<actual\>") {#-201}
158
+
159
+ A test cookie was written and read back immediately, but the value stored in `document.cookie` differed from the value that was written. The expected and actual values are both shown in the message.
160
+
161
+ The severity reflects whether cookie storage is required for the current configuration (see [Cookie could not be set](#-200) for the full explanation).
162
+
163
+ **Possible Causes:**
164
+ - A script on the page encodes or transforms cookie values after they are set.
165
+ - A browser extension rewrites cookie values.
166
+
167
+ **Mitigation:**
168
+ - Check for scripts that wrap `document.cookie` and transform values on write or read.
169
+ - Identify whether a browser extension is responsible by testing in a clean browser profile.
170
+
171
+ ---
172
+
173
+ ### ❌ / ⚠️ / ℹ️ Cookie "\<name\>" was set but not retained after 500ms {#-202}
174
+
175
+ The test cookie was written and present immediately after the write, but when checked again after 500 ms the cookie had disappeared. This indicates that something is deleting cookies after they are set, not that the initial write failed.
176
+
177
+ The severity reflects whether cookie storage is required for the current configuration (see [Cookie could not be set](#-200) for the full explanation).
178
+
179
+ **Possible Causes:**
180
+ - A script on the page periodically clears cookies or deletes cookies matching certain name patterns.
181
+ - A browser extension removes cookies for the monitored origin.
182
+ - A consent management platform or cookie banner script clears cookies before consent is given.
183
+
184
+ **Mitigation:**
185
+ - Check for timer-based or event-driven scripts on the page that delete cookies.
186
+ - Review consent management scripts to ensure they do not delete RUM cookies.
187
+
188
+ ---
189
+
190
+ ### ❌ / ⚠️ / ℹ️ Cookie "\<name\>" was retained after 500ms but its value was modified (expected "\<expected\>", got "\<actual\>") {#-203}
191
+
192
+ The test cookie was written and present immediately after writing, but when checked again after 500 ms the cookie value had changed. The expected and actual values are both shown in the message.
193
+
194
+ The severity reflects whether cookie storage is required for the current configuration (see [Cookie could not be set](#-200) for the full explanation).
195
+
196
+ **Possible Causes:**
197
+ - A script on the page modifies cookie values asynchronously after a short delay.
198
+ - A browser extension rewrites cookie values in the background.
199
+ - A consent management or data governance script normalizes or sanitizes cookie values.
200
+
201
+ **Mitigation:**
202
+ - Check for scripts that run asynchronously and modify cookie values.
203
+ - Identify whether a browser extension is responsible by testing in a clean browser profile.
204
+
205
+ ---
206
+
207
+ ### ❌ Cookie access threw an error (\<message\>) {#-204}
208
+
209
+ Accessing `document.cookie` threw a JavaScript exception. The error message is included in the finding. This will prevent features like session and user tracking from working.
210
+
211
+ **Possible Causes:**
212
+ - The page is embedded in a sandboxed iframe with the `allow-same-origin` attribute missing, which disables cookie access.
213
+ - A script on the page replaces `document.cookie` with an implementation that throws on access.
214
+ - A browser security policy or Content Security Policy configuration restricts cookie access.
215
+
216
+ **Mitigation:**
217
+ - If the page is embedded in an iframe, ensure the iframe has the `allow-same-origin` sandbox attribute set.
218
+ - Check whether any script on the page overrides the `document.cookie` getter or setter with an implementation that throws errors.
219
+ - Review browser security policies and CSP headers for any restrictions on cookie access.
220
+
221
+ ---
222
+
223
+ ### ❌ / ⚠️ / ℹ️ Events are not sent: \<reason\> {#-300}
224
+
225
+ An event-sending gate is active and blocking events from being dispatched. The message describes the active blocking condition:
226
+
227
+ - `cookies are disabled or blocked (mixed mode)` — cookie gate is active (❌ ERROR).
228
+ - `consent not granted` — user has not granted consent or has opted out (ℹ️ INFO).
229
+ - `off state active, reason: …, ~Xs remaining` — the agent entered the off state after repeated beacon failures (⚠️ WARNING).
230
+ - `server dynamic config is DISABLED` — server-side config has disabled the agent (⚠️ WARNING).
231
+ - `Low-priority events are not sent: server dynamic config is PRIORITY_HIGH` — only high-priority events are sent (⚠️ WARNING).
232
+
233
+ **Mitigation:**
234
+ - **Cookies gate:** see [Cookies are disabled or can't be set](#-102) and [Cookie could not be set](#-200).
235
+ - **Consent gate:** this is expected behavior when the user has not consented. No action needed unless consent management is misconfigured.
236
+ - **Off state:** check [Code 1004 - Beacon retries exceeded](#1004) and fix the beacon endpoint reachability issue. The off state clears automatically after up to 2 hours.
237
+ - **Server config:** check the application settings in Dynatrace to verify the RUM JavaScript has not been disabled or set to high-priority-only mode.
238
+
239
+ ---
240
+
241
+ ### ❌ Module has not been enabled {#-600}
242
+
243
+ There are dependencies between modules (e.g. the XHR module [X] depends on the Resourcetiming module [R]) and there are required dependencies and optional dependencies. If a required dependency is missing, a module is unable to be enabled and the RUM JavaScript will make this known with this error message.
244
+
245
+ **Possible Causes:**
246
+ There can be multiple reasons for this:
247
+
248
+ - The module has not been enabled in the config.
249
+ - The server did not enable the module.
250
+ - The RUM JavaScript is manually injected and the code on the page simply does not have this module loaded. Modules are not loaded on demand.
251
+ - The OneAgent does not have the module in question or there is something interfering with delivering the module (e.g. infrastructure or proxy replacement). To verify, take the URL of the RUM JavaScript (e.g. `ruxitagentjs_ICA_1234.js`) and replace the featurehash with the featurehash of the module in question (if e.g. the module `R` is missing, it would be `ruxitagentjs_R_1234.js`. **CASE MATTERS!**). If the returned JavaScript code is empty or mangled, then there is an issue.
252
+
253
+ **Mitigation:**
254
+ - Check the config (this is also a finding of the Health check) if it contains the modules in question (in the sample below, the `R` module) and if not, enable it in the settings or check if there is a caching issue.
255
+ - If manual injection is used and the config was modified to contain a new module, it is necessary to roll out the update RUM JavaScript file on the page (except for the complete tag).
256
+ - If the RUM JavaScript file is mangled/empty/…, make sure to fix infrastructure issues.
257
+
258
+ ---
259
+
260
+ ### ❌ Module \<name\> has not been enabled because its dependencies failed to activate {#-601}
261
+
262
+ A module could not be enabled because one or more of its required dependencies are present in the feature hash but failed to activate at runtime.
263
+
264
+ **Possible Causes:**
265
+ - A required dependency module loaded but threw an error during its own activation.
266
+ - See also: [Module has not been enabled](#-600) for the case where the dependency is not present in the feature hash at all.
267
+
268
+ **Mitigation:**
269
+ - Check the other findings — a dependency failure is usually preceded by an [Feature failed to initialize](#-104) (feature failed to initialize) or [Module has not been enabled](#-600) finding for the dependency module.
270
+
271
+ ---
272
+
273
+ ### ❌ Failed NativeFunctionality Test: \<error message\> {#-808}
274
+
275
+ The Health check is able to run some tests about the basic functionality of certain functions. The [MDN](https://developer.mozilla.org/en-US/) contains a specification of the APIs browsers have to provide and how they have to behave.
276
+ The RUM JavaScript has some tests to verify that this works correctly (e.g. if `reverse` is called on an Array, will it properly reverse? If an element is added to a Map, is it possible to retrieve it at a later point again). If this finding is shown, then the implementation of those functions is not correct and the RUM JavaScript will not function correctly.
277
+
278
+ **Possible Causes:**
279
+ - This is usually caused by some code on the page (e.g. Windchill) that provides an incomplete implementation of the APIs in question (e.g. for older browsers, which did not have this implementation in the past).
280
+ - Old applications sometimes provide their own implementation of APIs that were created before the official specification existed. These implementations are not always compatible with the official specification.
281
+
282
+ **Mitigation:**
283
+ The only way to fix it is to fix the webpage by making sure the APIs behave as specified in the MDN.
284
+
285
+ ---
286
+
287
+ ### ❌ Fetch test timed out {#-811}
288
+
289
+ A test request using `fetch` did not complete within the allowed timeout. This indicates that the `fetch` implementation on the page may not be working correctly.
290
+
291
+ **Possible Causes:**
292
+ - A third-party library has replaced `fetch` with an implementation that does not resolve promises correctly.
293
+ - The test URL (current page URL) is unreachable or hanging.
294
+
295
+ **Mitigation:**
296
+ - Check the other findings for any `fetch`-related overrides or wrappers ([Fetch wrapper detected on the page](#-812)).
297
+ - Verify that `fetch` behaves according to the specification on this page.
298
+
299
+ ---
300
+
301
+ ### ❌ XHR test timed out {#-813}
302
+
303
+ A test using `XMLHttpRequest` did not complete within the allowed timeout. This indicates that the `XMLHttpRequest` implementation on the page may not be working correctly.
304
+
305
+ **Possible Causes:**
306
+ - A third-party library has replaced `XMLHttpRequest` with an implementation that does not fire events or callbacks correctly.
307
+ - The test URL (current page URL) is unreachable or hanging.
308
+
309
+ **Mitigation:**
310
+ - Check the other findings for any XHR-related overrides.
311
+ - Verify that `XMLHttpRequest` behaves according to the specification on this page.
312
+
313
+ ---
314
+
315
+ ### ❌ An element with ID \<id\> was found on the page {#-900}
316
+
317
+ A DOM element on the page uses an ID that is reserved by the RUM JavaScript. This will cause functionality issues.
318
+ The reserved IDs are:
319
+
320
+ - `dynatrace`
321
+ - `dT_`
322
+ - `dtrum`
323
+ - `DT_RUM`
324
+
325
+ **Mitigation:**
326
+ - Remove or rename the conflicting element ID from your page's HTML.
327
+
328
+ ---
329
+
330
+ ### ❌ Rejected Promise not caught! This can cause all sort of problems! {#-1100}
331
+
332
+ Rejected Promises are not being caught. This is abnormal browser behavior, typically caused by zone.js interference with the Promise implementation.
333
+
334
+ **Mitigation:**
335
+ - Investigate whether zone.js is patching `Promises` on this page.
336
+ - Ensure all Promise rejections are handled with `.catch()` or `try/catch` in `async` functions.
337
+
338
+ ---
339
+
340
+ ### ⚠️ \<N\> event(s) dropped this minute: event rate limit exceeded {#-301}
341
+
342
+ The number of events generated in the current minute exceeded the configured per-minute rate limit. Events above the limit were dropped and will not be sent.
343
+
344
+ **Possible Causes:**
345
+ - The frontend generates an unusually high number of user actions, errors, or custom events in a short time.
346
+ - Automated test traffic or synthetic monitoring is sending events through the agent.
347
+
348
+ **Mitigation:**
349
+ - Review your frontend's event volume. Check for runaway loops creating user actions or custom events via the API.
350
+
351
+ ---
352
+
353
+ ### ⚠️ Beacon sending suppressed for app "\<appId\>" {#-302}
354
+
355
+ The beacon endpoint responded with HTTP 405 or a `Retry-After` header, and the agent has temporarily suppressed beacon sending for the affected frontend.
356
+
357
+ **Possible Causes:**
358
+ - The beacon endpoint is rate-limiting requests from this frontend.
359
+ - A proxy or load balancer is responding with 405 to beacon requests.
360
+
361
+ **Mitigation:**
362
+ - Check the beacon endpoint configuration and infrastructure for any rate-limiting or method-restriction rules.
363
+ - The suppression lifts automatically after the indicated remaining time.
364
+
365
+ ---
366
+
367
+ ### ⚠️ Form \<identifier\> has native DOM properties overridden by named form controls: \<property list\> {#-400}
368
+
369
+ A `<form>` element on the page contains child elements (e.g., `<input>`, `<select>`) whose `name` or `id` attributes match native `HTMLFormElement` property names. This causes those native properties to be shadowed, which can prevent the RUM JavaScript from correctly reading form data.
370
+ **Example:** `<input name="action">` inside a form overrides `form.action`
371
+
372
+ **Mitigation:**
373
+ - Rename the form controls listed in the message to avoid clashing with native HTML form property names.
374
+
375
+ ---
376
+
377
+ ### ⚠️ Injection format is unsupported {#-500}
378
+
379
+ The currently used RUM JavaScript injection mode is not supported.
380
+
381
+ **Possible Causes:**
382
+ - The RUM JavaScript is placed on the page with a custom method (e.g. bundled as part of another file).
383
+ - A Tag Manager is used and performs unknown modifications.
384
+
385
+ **Mitigation:**
386
+ - Switch to a supported RUM Injection mode.
387
+ - If no issues occur, this can be ignored.
388
+
389
+ ---
390
+
391
+ ### ⚠️ MutationObserver has been overridden by a non-native, non-zone.js implementation {#-700}
392
+
393
+ `MutationObserver` has been replaced by a third-party library other than zone.js. This may cause the RUM JavaScript to miss DOM changes.
394
+
395
+ **Mitigation:**
396
+ - Identify the library overriding `MutationObserver`.
397
+ - Load the RUM JavaScript before the offending library.
398
+
399
+ ---
400
+
401
+ ### ⚠️ MutationObserver has been overridden by zone.js {#-701}
402
+
403
+ The `MutationObserver` API has been wrapped by zone.js (commonly used with Angular). The RUM JavaScript detects this via the presence of `__zone_symbol__OriginalDelegate` or similar zone.js markers.
404
+
405
+ **Mitigation:**
406
+ - This is expected in Angular applications. The RUM JavaScript is aware of zone.js and attempts to work correctly with it.
407
+ - If you observe data quality issues, consider configuring zone.js to exclude `MutationObserver` from patching.
408
+
409
+ ---
410
+
411
+ ### ⚠️ `Function.prototype.toString()` is overridden {#-800}
412
+
413
+ `Function.prototype.toString` has been replaced on this page. The override check uses this method to detect native vs. wrapped functions, so its results may be unreliable.
414
+
415
+ **Possible Causes:**
416
+ - Some JavaScript on the page modifies the `Function.prototype.toString` function.
417
+
418
+ **Mitigation:**
419
+ - Identify and remove the library overriding `Function.prototype.toString` if possible.
420
+ - Treat all override check results on this page with caution.
421
+
422
+ ---
423
+
424
+ ### ⚠️ `<name>` was not found by the override check - not supported by this browser or removed {#-802}
425
+
426
+ The function was not present in the browser environment. It may not be supported by this browser version, or it may have been deleted by a third-party script.
427
+
428
+ **Mitigation:**
429
+ - If the browser is known to support the function, check whether a third-party script is deleting it.
430
+ - If the browser genuinely does not support the function, the RUM JavaScript might skip collecting data or may fail to run properly. If functionality is affected, make sure to restore the function to its original functionality.
431
+
432
+ ---
433
+
434
+ ### ⚠️ / ❌ / ℹ️ \<XYZ\> is overridden {#-803}
435
+
436
+ The RUM JavaScript detected that the function or object \<XYZ\> is no longer a native implementation. There are five variants of this message:
437
+
438
+ - `"<XYZ>" is overridden - may affect RUM functionality or data quality.` (❌ ERROR)
439
+
440
+ Something other than the RUM JavaScript has overridden a function that the RUM JavaScript actively uses, and the RUM JavaScript's tests confirmed the override does not behave as expected. This can lead to broken functionality or silent data loss.
441
+
442
+ - `"<XYZ>" is overridden and re-wrapped after RUM JavaScript.` (⚠️ WARNING)
443
+
444
+ The RUM JavaScript overrides this function for monitoring purposes, but something on the page has wrapped it again afterward. Data quality may be affected.
445
+
446
+ - `"<XYZ>" is overridden. RUM JavaScript would use it if modules (<modules>) are enabled.` (⚠️ WARNING)
447
+
448
+ The RUM JavaScript overrides this function in the listed modules, but those modules are not currently active. The override has no effect at the moment.
449
+
450
+ - `"<XYZ>" is overridden but behaves as expected according to our tests.` (ℹ️ INFO)
451
+
452
+ Something other than the RUM JavaScript has overridden the function, but the RUM JavaScript's built-in tests confirm the wrapped version still behaves correctly. No action required.
453
+
454
+ - `"<XYZ>" is overridden but not used by any active module.` (ℹ️ INFO)
455
+
456
+ The function is overridden by a third party, but no currently active RUM JavaScript module relies on it. No data quality impact expected.
457
+
458
+ **Mitigation:**
459
+ If you get the ❌ ERROR message, you can expand the object below the table to get more information. You expand the "details" of the entry and then it will show "function" and either "classic", "rumOnGrail" or both. If you expand those properties further, you can see where the implementation is, if it is not the native implementation. There might be some incompatibility between the custom implementation and what the official spec for the implementation states/what the RUM JavaScript expects.
460
+
461
+ **Example:**
462
+ - The Health check mentions e.g. `clearInterval` as being overridden.
463
+ - Expand the Array shown below the table until you reach the details of the `"clearInterval" is overridden` finding.
464
+ - "classic" references the function the RUM Classic RUM JavaScript has wrapped.
465
+ - "function" references the function that is currently used as `clearInterval` function. If you click on the `[[FunctionLocation]]` link, you can see the implementation. In case there is another wrapper on the page, one of those `[[FunctionLocation]]` links will link to the custom implementation (which value links to the custom code, depends on the injection order/script execution order).
466
+
467
+ ---
468
+
469
+ ### ⚠️ `<name>` cannot be inspected - its toString & generic toString methods are overridden or missing {#-804}
470
+
471
+ The override check cannot determine whether this function is native because both its own `toString` and `Function.prototype.toString` are overridden or unavailable.
472
+
473
+ **Mitigation:**
474
+ - Identify and remove the library overriding `Function.prototype.toString` if possible.
475
+ - If the override originates from a required dependency, treat the affected function's override status as unknown and monitor for data quality issues.
476
+
477
+ ---
478
+
479
+ ### ⚠️ `<name>` is augmented on this page by [Sentry] {#-805}
480
+
481
+ Sentry's SDK has modified this function. Sentry and the RUM JavaScript both instrument certain browser APIs; running both simultaneously can affect data quality.
482
+
483
+ **Mitigation:**
484
+ - Load the RUM JavaScript before Sentry when possible.
485
+
486
+ ---
487
+
488
+ ### ⚠️ `<name>` was wrapped before RUM JavaScript - may affect RUM functionality or data quality {#-809}
489
+
490
+ A third-party library wrapped the function before the RUM JavaScript loaded, and the wrapper may interfere with the RUM JavaScript's ability to collect accurate data.
491
+
492
+ **Mitigation:**
493
+ - Load the RUM JavaScript as early as possible, before other scripts.
494
+ - Identify the library responsible and assess whether it is compatible with RUM monitoring.
495
+
496
+ ---
497
+
498
+ ### ⚠️ Fetch wrapper detected on the page {#-812}
499
+
500
+ The RUM JavaScript's internal unwrapped `fetch` reference and the current `globalThis.fetch` are different objects, which means something on the page has wrapped `fetch` after the RUM JavaScript loaded.
501
+
502
+ **Possible Causes:**
503
+ - A third-party library (e.g. a service worker polyfill, Sentry, or another monitoring tool) wrapped `fetch` after the RUM JavaScript initialized.
504
+ - The RUM JavaScript's own fetch module may be responsible if the fetch module is active.
505
+
506
+ **Mitigation:**
507
+ - Check which library is wrapping `fetch`. If it is the RUM JavaScript's own fetch module, this finding is expected and can be ignored.
508
+ - If a third-party wrapper is interfering with data collection, try loading the RUM JavaScript before that library.
509
+
510
+ ---
511
+
512
+ ### ⚠️ A custom script ID \<id\> was detected on the RUM JavaScript {#-902}
513
+
514
+ The `<script>` tag used to load the RUM JavaScript has an `id` attribute. This is not supported and may cause unexpected behavior.
515
+
516
+ **Mitigation:**
517
+ - Remove the `id` attribute from the RUM JavaScript's `<script>` tag.
518
+
519
+ ---
520
+
521
+ ### ⚠️ "\<name\>" is overridden — may affect RUM agent behavior {#-1001}
522
+
523
+ The standalone Health check detected that the function `<name>` is not a native implementation. Since no RUM JavaScript agent is present to account for its own wrapping, any override is likely from a third-party library and may affect RUM data quality if the agent is later injected.
524
+
525
+ **Mitigation:**
526
+ - Identify the library overriding the function and assess whether it is compatible with the RUM JavaScript.
527
+ - Load the RUM JavaScript as early as possible so it can use the native implementation before third-party wrappers are applied.
528
+
529
+ ---
530
+
531
+ ### ⚠️ Rejected Promises still get logged even if they are in a try & catch block! {#-1101}
532
+
533
+ zone.js is causing handled Promise rejections (those inside `try/catch` blocks) to still be logged as unhandled. This is not the normal browser behavior and can cause false-positive unhandled rejection reports in the console and in the RUM JavaScript's error collection.
534
+
535
+ **Mitigation:**
536
+ - This is a known [zone.js behavior](https://github.com/angular/angular/issues/51328). Consider configuring zone.js to not patch Promises, or suppress false-positive error reports in Dynatrace using error filtering rules.
537
+
538
+ ---
539
+
540
+ ### ℹ️ RUM JavaScript is running with version: \<version\> {#-105}
541
+
542
+ This shows the version of the JavaScript Agent that is currently running. This is the version of the RUM JavaScript that can also be seen in the WebUI.
543
+
544
+ ---
545
+
546
+ ### ℹ️ RUM JavaScript config (see details) {#-106}
547
+
548
+ This shows the currently active config in the RUM JavaScript. Expand the details, to see the full config.
549
+
550
+ ---
551
+
552
+ ### ℹ️ Request \<url\> was excluded by regex {#-107}
553
+
554
+ A request with the URL \<url\> was ignored due to a request exclusion rule. This means it will not be reported or visible in the user.events table. This is a manual config, so most likely intended.
555
+
556
+ **Mitigation:**
557
+ If this was not intended:
558
+ - make sure the XHR exclusion rules in the application settings are correct.
559
+
560
+ ---
561
+
562
+ ### ℹ️ Events are eligible to be sent — no blocking conditions detected {#-303}
563
+
564
+ All event-sending gates are open and no rate-limiting or retry suppression is active. This is the expected healthy state.
565
+
566
+ ---
567
+
568
+ ### ℹ️ `<name>` was wrapped before RUM JavaScript but behaves as expected according to our tests {#-806}
569
+
570
+ A third-party library wrapped the function before the RUM JavaScript loaded, but the RUM JavaScript's tests confirm the wrapped version behaves correctly. Data quality should not be affected.
571
+
572
+ **Mitigation:**
573
+ - No action required. If issues occur, try blocking the script that modifies the behavior of the used function.
574
+
575
+ ---
576
+
577
+ ### ℹ️ "\<name\>" is overridden by RUM JavaScript {#-810}
578
+
579
+ The function or object `<name>` has been wrapped or replaced by the RUM JavaScript for monitoring purposes (e.g. to intercept XHR, fetch, or setTimeout calls). This is expected and informational only.
580
+
581
+ ---
582
+
583
+ ### ℹ️ Could not perform script id check as no script was found {#-901}
584
+
585
+ The Health check tried to locate the RUM JavaScript `<script>` element in the DOM to check its `id` attribute, but no matching script was found.
586
+
587
+ **Possible Causes:**
588
+ - The RUM JavaScript was injected inline rather than as a separate `<script src="...">` tag.
589
+ - The `<script>` element was removed from the DOM after the agent loaded.
590
+ - The script was loaded in a context where `document.currentScript` and related APIs are unavailable.
591
+
592
+ **Mitigation:**
593
+ - No action required if the agent is otherwise functioning correctly. This is an informational finding only.
594
+
595
+ ---
596
+
597
+ ### ℹ️ Standalone Health check — snippet v\<version\> {#-1000}
598
+
599
+ The standalone Health check snippet is running independently (without a full RUM JavaScript agent on the page). This finding reports the version of the standalone snippet that is executing.
600
+
601
+ ---
602
+
603
+ ### 🔎 "\<name\>" is fine {#-801}
604
+
605
+ The override check determined that `<name>` is a native implementation. Shown only in verbose/detailed mode.
606
+
607
+ ---
608
+
609
+ ### 🔎 Successful NativeFunctionality Test: \<name\> - \<test\> {#-807}
610
+
611
+ A native functionality test for `<name>` passed. Shown only in verbose/detailed mode.
612
+
613
+ ---
614
+
615
+ ## Selfmonitoring Information
616
+
617
+ There are things the RUM JavaScript encounters and reports back as Selfmonitoring Events. These findings are also presented.
618
+
619
+ These are the codes and what they mean/can be done to fix the issue.
620
+
621
+ ---
622
+
623
+ ### ❌ Code 1000 - No Response Message {#1000}
624
+
625
+ The RUM JavaScript sent a beacon to the Dynatrace server but received no response at all. This may be a network-level failure (request blocked, dropped, or timed out before a response was returned).
626
+
627
+ **Possible Causes:**
628
+ - A network proxy, firewall, or Content Security Policy is blocking requests to the beacon endpoint.
629
+ - The beacon endpoint is temporarily unavailable due to connection issues.
630
+
631
+ **Mitigation:**
632
+ - Verify that the beacon endpoint is reachable from the browser.
633
+ - Check your network configuration and CSP headers for blocked outbound requests.
634
+ - Review the browser's network tab for failed requests to the beacon endpoint.
635
+
636
+ ---
637
+
638
+ ### ❌ Code 1001 - Invalid Response Message {#1001}
639
+
640
+ The agent received a response from the server, but the response body was not in the expected format and could not be parsed.
641
+
642
+ **Possible Causes:**
643
+ - A proxy or security appliance is intercepting and modifying the beacon response.
644
+ - A load balancer is causing the request to not be redirected to a proper beacon endpoint.
645
+ - Not all of your backend servers are properly instrumented with OneAgent.
646
+
647
+ **Mitigation:**
648
+ - Check whether any intermediate proxy modifies the response from the beacon endpoint.
649
+ - Make sure the infrastructure correctly routes a beacon request to a beacon endpoint.
650
+ - Make sure all the backend servers of your application are properly instrumented with OneAgent.
651
+
652
+ ---
653
+
654
+ ### ❌ Code 1002 - Unexpected Error {#1002}
655
+
656
+ The RUM JavaScript encountered an unexpected error. The error in question does not have a separate error code (yet).
657
+
658
+ **Mitigation:**
659
+ - Make sure none of the other findings indicate an error (e.g. missing Browser APIs).
660
+ - Additional analysis is necessary. Contact Dynatrace support and provide the information about the issue.
661
+
662
+ ---
663
+
664
+ ### ⚠️ Code 1003 - CSP Violation {#1003}
665
+
666
+ In order to access the battery level, the RUM JavaScript needs to access `navigator.getBattery()`. Access to this API can be forbidden using the Permissions-Policy header, which would lead to error 1003 in the RUM JavaScript.
667
+
668
+ **Mitigation:**
669
+ - Make sure that access to `navigator.getBattery()` is not forbidden using a Permissions-Policy header.
670
+ - If this can not be adapted, the battery information on RUM Events will be missing.
671
+
672
+ ---
673
+
674
+ ### ❌ Code 1004 - Beacon retries exceeded {#1004}
675
+
676
+ The RUM JavaScript tried to send a beacon to the beacon endpoint multiple times but all attempts failed. The agent enters an **off state** for up to 2 hours and stops sending beacons during that period.
677
+
678
+ **Possible Causes:**
679
+ - Persistent network connectivity issues between the browser and the beacon endpoint.
680
+ - The beacon endpoint is rate-limiting or rejecting requests.
681
+
682
+ **Mitigation:**
683
+ - Make sure the beacon endpoint is reachable:
684
+ - Check that the network connection is working.
685
+ - Check that the beacon endpoint is running and reachable and not blocked by firewalls.
686
+
687
+ ---
688
+
689
+ ### ❌ Code 1005 - An event chain subscriber threw and the remaining subscribers were not notified: \<message\> {#1005}
690
+
691
+ An internal RUM JavaScript listener threw while it was being notified about an event or a state change. The listeners still waiting to be notified about that same event were skipped, so some data may be missing or incomplete. Data collection recovers for subsequent events. The exception is not suppressed, so it is also visible in the browser console.
692
+
693
+ **Possible Causes:**
694
+ - A JavaScript API on the page was replaced with a version that throws instead of returning a value.
695
+ - Some JavaScript API on the page is not working according to the specification.
696
+
697
+ **Mitigation:**
698
+ - Check the other findings to see if any JavaScript APIs are overridden and not working according to the specification (see MDN).
699
+
700
+ ---
701
+
702
+ ### ℹ️ Code 2000 - Injected Config Version: \<revision\> {#2000}
703
+
704
+ This shows the currently used config version. This can be used to make sure the RUM JavaScript is running with the newest version.
705
+
706
+ ---
707
+
708
+ ### ℹ️ Code 2001 - Stored Config Version: \<revision\> {#2001}
709
+
710
+ This shows the config version of the config stored in `window.localStorage`. This can be used to make sure the RUM JavaScript has the newest version of the config stored.
711
+
712
+ ---
713
+
714
+ ### ℹ️ Code 2002 - Config Updated to version: \<revision\> {#2002}
715
+
716
+ This indicates that the RUM JavaScript received a config update from the beacon endpoint. The message contains more information about the config version.
717
+
718
+ **Mitigation:**
719
+ - When automatic injection is used, this is not an issue, as this happens when there was a recent config update. After a page change, the new config should be used automatically. If it happens over a long time, check the caching behavior of the current page.
720
+ - When manual insertion is used, this means that the RUM JavaScript on the page contains an old config and an update of the RUM JavaScript should be performed to make sure every user uses the updated config from the start.
721
+
722
+ ---
723
+
724
+ ### ℹ️ Code 2003 - Injection format {#2003}
725
+
726
+ Describes how the RUM JavaScript was injected into the page. Possible values include:
727
+
728
+ - `"Inline Code"`: RUM JavaScript was injected as an inline script.
729
+ - `"JavaScript tag"`: the RUM JavaScript was loaded as a standalone JS tag.
730
+ - `"OneAgent JavaScript tag"`: the RUM JavaScript was injected by the Dynatrace OneAgent.
731
+ - `"Unknown"`: the injection method could not be determined.
732
+
733
+ ---
734
+
735
+ ### ⚠️ Code 2004 - Non-native implementation: non-native implementation of XMLHttpRequest {#2004}
736
+
737
+ The agent detected that XMLHttpRequest was already wrapped or replaced before the agent loaded. The agent will still attempt to instrument XMLHttpRequest, but data quality or functionality may be affected.
738
+
739
+ **Possible Causes:**
740
+ Some other JavaScript on the page overrides the native functionality.
741
+ This commonly happens when other RUM solutions or request frameworks are included on the page.
742
+
743
+ **Mitigation:**
744
+ This is not necessarily an issue, but can lead to broken behavior, if the custom implementation of XMLHttpRequest does not behave like the native implementation. If the application works as expected, this can be ignored.
745
+ Things to try if the application functionality is affected:
746
+
747
+ - Disable the XHR module in the Application Settings and check if the problem stops.
748
+ - Make sure the RUM JavaScript is injected as the first script on the page (and not deferred/async). This will cause the RUM JavaScript to use the native implementation of the XMLHttpRequest, reducing the chance of incompatibilities.
749
+ - Try blocking the custom implementation of the XMLHttpRequest to verify the behavior does not happen if the RUM JavaScript can use the native implementation.
750
+
751
+ ---
752
+
753
+ ### ⚠️ Code 2005 - Discarded data {#2005}
754
+
755
+ **Possible Causes:**
756
+ There are multiple reasons why data needs to be discarded:
757
+
758
+ - The RUM JavaScript entered the off state and will not send data for up to 2 hours. This is triggered by persistent errors such as beacon failures.
759
+ - When events are exceeding the maximum size, they will be discarded. The default limit for an event is 256 KiB (JSON converted to a string using JSON.stringify).
760
+ - When the amount of events to send exceeds the allowed limit per minute, events will be discarded.
761
+ - The RUM JavaScript is disabled.
762
+
763
+ **Mitigation:**
764
+ - Event size limit is exceeded: This is most likely happening due to custom events or event enrichment using `eventModifiers`. Check your code and make sure the size of an event does not exceed the limit of 256 KiB.
765
+ - The amount of events to send is exceeded: Check your code if there are too many events created using the API.
766
+ - The RUM JavaScript is disabled:
767
+ - When the RUM JavaScript receives invalid responses, it will automatically disable. Make sure the beacon endpoint is reachable and properly configured.
768
+ - The beacon endpoint might have disabled the RUM JavaScript remotely. This happens if RUM overload prevention is active. Check the settings if they need adjustment or if there is simply too much traffic at the moment.
769
+
770
+ ---
771
+
772
+ ### ⚠️ Code 2006 - Missing browser support {#2006}
773
+
774
+ This is shown when the browser does not support a certain feature and the RUM JavaScript will not be able to collect data from it.
775
+
776
+ **Mitigation:**
777
+ - Check if the feature in question is supported on newer versions of your browser and update if possible or use a different browser.
778
+ - If this is not an option, reduced functionality has to be expected.
779
+
780
+ ---
781
+
782
+ ### ℹ️ Code 2007 - Config updated on first beacon {#2007}
783
+
784
+ This indicates that the RUM JavaScript received a config update from the beacon endpoint when the first beacon was sent. The message contains more information about the config version.
785
+
786
+ **Mitigation:**
787
+ - Automatic injection:
788
+ - This is not necessarily an issue, as this happens when there was a recent config update. After a page change, the new config should be used automatically.
789
+ - If the issue persists for a longer duration, check if the page gets cached.
790
+ - Manual insertion:
791
+ - When manual insertion is used, this means that the RUM JavaScript on the page contains an old config and an update of the RUM JavaScript should be performed to make sure every user uses the updated config from the start.
792
+ - If the issue persists for a longer duration, check if the page gets cached.
793
+
794
+ ---
795
+
796
+ ### ℹ️ Code 2008 - Frame disposed {#2008}
797
+
798
+ When the `Cross Origin Frame Info sharing` feature is used, the RUM JavaScript is passing messages between the different iframes to determine a common `page.instance_id`. If the frame in charge is unloaded, this finding is shown.
799
+ The routine "current frame is unloading" case is reported as `Info`. The case where the earliest frame being relied upon was disposed or is no longer accessible is reported as `Warning`, because tab states and visibility change events may be inaccurate for a short time afterward.
800
+
801
+ **Mitigation:**
802
+ - This is generally expected in multi-frame applications when iframes are dynamically created/destroyed and the `Cross Origin Frame Info sharing` feature is turned on.
803
+ - Investigate if iframes are being frequently recreated. The RUM JavaScript tries to create a stable `page.instance_id`, but during the brief transition, some information on events may be temporarily inaccurate.
804
+
805
+ ---
806
+
807
+ ### 🔎 Code 2009 - Event updates added {#2009}
808
+
809
+ When the `Cross Origin Frame Info sharing` feature is used, the RUM JavaScript is passing messages between the different iframes to determine a common `page.instance_id`. It takes some time for the `page.instance_id` to stabilize, and therefore some data on already created events has to be updated. This finding is showing that this has happened, to make it clear that some values might not be accurate.
810
+
811
+ **Mitigation:**
812
+ - There is no way to resolve the issue. Passing messages between iframes takes some time and if data has to be sent out before the message passing finished, some events will not have the newest `page.instance_id` values.
813
+
814
+ ---
815
+
816
+ ### ⚠️ Code 2010 - Config value outside of bounds {#2010}
817
+
818
+ A configuration value was outside the acceptable range or was not a valid number (object, boolean, NaN, etc.). The RUM JavaScript clamped it to the allowed minimum/maximum or applied the default value. The message includes the config key and the problematic value.
819
+
820
+ **Mitigation:**
821
+ - Check which config value is out of bounds or invalid and correct it (most likely due to manual modifications of the JavaScript code).
822
+
823
+ ---
824
+
825
+ ### ⚠️ Code 2011 - User Action Discarded: Module Unload {#2011}
826
+
827
+ A user action was in progress when the user actions module was unloaded. The action was discarded rather than completed or sent. This happens when the module is disabled remotely via a config update while the user is interacting with the page.
828
+
829
+ ---
830
+
831
+ ### ⚠️ Code 2012 - User Action Discarded: Consent Revoked {#2012}
832
+
833
+ A user action was in progress when consent was revoked. The action was discarded to respect the user's consent decision. No data from the in-progress action is sent to the beacon endpoint.
834
+
835
+ ---
836
+
837
+ ### ❌ Code 3000 - Cookie Domain Error {#3000}
838
+
839
+ The RUM JavaScript could not automatically determine a suitable cookie domain for the current hostname. The agent enters the off state because session and visitor tracking cannot work without a cookie domain.
840
+
841
+ **Mitigation:**
842
+ - Check for restrictive SameSite policies.
843
+ - Check for unusual TLDs.
844
+ - Check that setting cookies is not blocked by any other means (e.g. other scripts on the page preventing cookies from being set).
845
+
846
+ ---
847
+
848
+ ### ⚠️ Code 3001 - Duplicate Cookies {#3001}
849
+
850
+ The RUM JavaScript detected a Dynatrace cookie that existed multiple times.
851
+
852
+ **Possible Causes:**
853
+ - Cookies set for both a parent and subdomain (e.g., `.example.com` and `app.example.com`).
854
+ - Cookies are set with different path attributes.
855
+
856
+ **Mitigation:**
857
+ - Check if other Dynatrace frontends with different cookie domain settings are active on the same domain. Make sure to use the same domain across all frontends.
858
+ - Check if there is a script on your page that might be responsible for duplicating the cookie to a different domain/path and prevent it from doing so.
859
+ - Check if the infrastructure duplicates cookies to a different domain/path. Dynatrace always sets the `path=/` attribute, any other value is not coming from Dynatrace components.
860
+
861
+ ---
862
+
863
+ ### ❌ Code 3002 - Invalid or Unknown Metadata Capturing Config {#3002}
864
+
865
+ The config for capturing `event_properties` is invalid or contains invalid entries.
866
+ The config for capturing `event_properties` received from the server could not be parsed or contained an unrecognized format. Capturing may be partially or fully disabled.
867
+
868
+ **Possible Causes:**
869
+ - Most likely manual modification of the setting caused this.
870
+ - A config intended for a newer RUM JavaScript version was received.
871
+
872
+ **Mitigation:**
873
+ - Make sure the config was not modified in an invalid way.
874
+ - Make sure the RUM JavaScript version is new enough, and you did not accidentally downgrade the version that does not yet support the capturing config.
875
+
876
+ ---
877
+
878
+ ### ⚠️ Code 3003 - User Interaction native event timestamp missing or 0 {#3003}
879
+
880
+ The RUM JavaScript intercepted a User Interaction with a timestamp of 0. This will affect the accuracy of user action timing.
881
+
882
+ **Possible Causes:**
883
+ - A third-party library recreated or dispatched the event synthetically without setting a timestamp (e.g. automation of a testing framework).
884
+
885
+ **Mitigation:**
886
+ - This is typically caused by browser quirks or testing libraries dispatching events via `new Event()` without timestamps. Check if this is the case and make sure a timestamp is part of the event.
887
+ - Events dispatched via `new Event(...)` without a timestamp will always have this issue. Consider using `new MouseEvent(...)` or similar constructors that set timestamps automatically.
888
+ - In production, ensure no code is dispatching synthetic events without timestamps.
889
+
890
+ ---
891
+
892
+ ### ❌ Code 3004 - Cookie Parse Error {#3004}
893
+
894
+ The RUM JavaScript read an existing cookie but could not parse its content.
895
+
896
+ **Possible Causes:**
897
+ - Manual cookie tampering.
898
+ - Browser extensions modifying cookies.
899
+ - Application code modifying the cookie with incompatible data.
900
+
901
+ **Mitigation:**
902
+ - Investigate what is writing malformed data to the Dynatrace cookies.
903
+
904
+ ---
905
+
906
+ ### ❌ Code 3005 - Cookie Operations Error {#3005}
907
+
908
+ Reading from `document.cookie` or writing to `document.cookie` failed. On write failures the agent additionally enters the off state, because session and visitor tracking cannot work without cookie access.
909
+
910
+ **Mitigation:**
911
+ - Ensure that cookie access is allowed.
912
+ - Make sure there is no application code that prevents the access.
913
+ - Check if there are any security restrictions in place.
914
+
915
+ ---
916
+
917
+ ### ⚠️ Code 3006 - Invalid Session Extension Config {#3006}
918
+
919
+ The config describing which events extend the session duration is invalid.
920
+
921
+ **Mitigation:**
922
+ - Make sure the config has the correct format.
923
+
924
+ ---
925
+
926
+ ### ❌ Code 3007 - Regular Expression Config Parse Error {#3007}
927
+
928
+ A configuration value that should be a regular expression (e.g., for URL exclusion rules) could not be parsed as a valid regex. The message contains the name of the configuration key that failed.
929
+
930
+ **Mitigation:**
931
+ - Make sure the Regex in question is valid (e.g. by using regex101.com).
932
+
933
+ ---
934
+
935
+ ### ❌ Code 3008 - Storage Operation Failure {#3008}
936
+
937
+ Reading from/Writing to `localStorage`/`sessionStorage` failed.
938
+
939
+ **Possible Causes:**
940
+ - The browser's storage quota has been exceeded.
941
+ - Storage access is blocked by browser policy (e.g., in private/incognito mode with strict settings, or inside a sandboxed iframe).
942
+
943
+ **Mitigation:**
944
+ - Check browser storage availability for the monitored origin.
945
+ - Make sure Storage access is no longer blocked by browser policy.
946
+
947
+ ---
948
+
949
+ ### ⚠️ Code 3009 - Invalid Cookie Domain Configuration {#3009}
950
+
951
+ The `cookieDomain` value configured in Dynatrace is not valid for the current page's hostname. The RUM JavaScript fell back to an automatically detected domain.
952
+
953
+ **Possible Causes:**
954
+ - The domain used for setting cookies is configured wrong in the settings.
955
+ - OneAgent was not able to detect the domain based on the headers used for Host detection.
956
+
957
+ **Mitigation:**
958
+ - Correct the domain used for setting cookies in the Application settings.
959
+ - Make sure host name determination is set up correctly.
960
+
961
+ ---
962
+
963
+ ### ℹ️ Code 3010 - Session Creation Reason {#3010}
964
+
965
+ A new session was started. The reason indicates what caused the previous session to end. Common reasons include session timeout, navigation, or no existing session cookie found.
966
+
967
+ ---
968
+
969
+ ### 🔎 Code 3011 - User Creation Reason {#3011}
970
+
971
+ Indicates how the current user ID was established. Common reasons include an existing user cookie being loaded, an `rxVisitor` cookie being adopted from RUM Classic or another frontend, or a new user ID being created because no existing user cookie was found.
972
+
973
+ ---
974
+
975
+ ### ⚠️ Code 3012 - API Version Mismatch {#3012}
976
+
977
+ The RUM JavaScript SDK and the RUM JavaScript agent are running with incompatible versions. The message contains details about the mismatch, including the reason and the versions involved.
978
+
979
+ **Possible Causes:**
980
+ - The SDK package (`@dynatrace/rum-javascript-sdk`) used to build the application is a different version than the RUM JavaScript agent loaded at runtime.
981
+ - This can happen when the SDK version is updated in the application but the injected agent has not yet been updated, or vice versa.
982
+
983
+ **Mitigation:**
984
+ - Make sure the SDK version used at build time matches the version of the RUM JavaScript agent loaded at runtime.
985
+ - If automatic injection is used, a deployment may be needed to pick up the updated agent.
986
+
987
+ ---
988
+
989
+ ### ℹ️ Code 3013 - Activation status delayed {#3013}
990
+
991
+ Beacons are held back until the mobile agent controlling the web view in a hybrid scenario allows the RUM JavaScript to send them.