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
{{ message }}
Repository navigation
Commit a551e88
Browse filesBrowse the repository at this point in the historyBrowse files
Keep events when core plugins or serialization hit bad data
- parseQueryString/getCookies: decode safely, split on the first "=",
match exclusions on the decoded key, use "" for missing values and
skip empty keys.
- prune/stringify: drop values whose getter, toJSON or Proxy throws
instead of throwing; cap nested toJSON calls by depth; track only
ancestors for cycle detection (arrays and errors included) so shared,
non-circular references are kept.
- EventPluginManager: a throwing plugin is logged with its name and the
error, and the event continues instead of being cancelled.
- EventExclusionPlugin: logs without a level are cancelled when the
source's minimum level is off; exception type exclusions also apply
to @simple_error.
- DuplicateCheckerPlugin: de-duplicate @simple_error events.
- Setting `context.cancelled = true` stops later plugins and prevents submission.
58
-
- Plugin errors are caught by `EventPluginManager`; the event is cancelled to avoid sending partially processed data.
58
+
- Plugin errors are caught by `EventPluginManager`, logged with the plugin name and error message, and the event continues through the remaining plugins. A throwing plugin does not cancel the event; set `context.cancelled = true`to drop it. A failing `startup` or `suspend` is logged the same way and does not stop other plugins.
59
59
- Keep plugins small. Prefer plugins for cross-cutting enrichment or filtering, not business logic.
60
60
- Be careful adding user, request, headers, cookies, query, or body data. Read [data-exclusions.md](data-exclusions.md) first.
Copy file name to clipboardExpand all lines: .agents/skills/exceptionless-javascript/references/troubleshooting.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,6 +38,10 @@ If expected data is absent from an event, check `includePrivateInformation`, `in
38
38
39
39
If expected events are missing, check synced settings and client-side filters such as `@@log:*`, `@@error:*`, `@@usage:*`, and custom plugins that set `context.cancelled = true`.
40
40
41
+
A log minimum level of `off` for a source (for example `@@log:*` = `off`) also drops logs submitted without a level. Exception type settings such as `@@error:TypeError` apply to both `@error` and `@simple_error` data, including inner errors.
42
+
43
+
If a custom plugin throws, the client logs `Error running plugin "<name>"` and keeps processing the event. Enable `config.useDebugLogger()` to see these messages; the default logger discards them.
* 2. If the value is a function or unsupported type it will be return undefined.
313
336
* 3. If the value is an array, it will be pruned to the specified depth.
314
337
* 4. If the value is an object, it will be pruned to the specified depth and
315
-
* a. If the object is a Circular Reference it will return undefined.
338
+
* a. If the object is a Circular Reference (it contains itself, including through arrays and errors) it will return undefined. Repeated references that are not circular are kept.
316
339
* b. If the object is a Map, it will be converted to an object. Some data loss might occur if map keys are object types as last in wins.
317
340
* c. If the object is a Set, it will be converted to an array.
318
341
* d. If the object contains prototype properties, they will be picked up.
319
-
* e. If the object contains a toJSON function, it will be called and it's value will be normalized.
342
+
* e. If the object contains a toJSON function, it will be called and it's value will be normalized. Nested toJSON calls count against the depth.
320
343
* f. If the object is is not iterable or cloneable (e.g., WeakMap, WeakSet, etc.), it will return undefined.
321
344
* g. If a symbol property is encountered, it will be converted to a string representation and could overwrite existing object keys.
322
345
* 5. If the value is an Error, we will treat it as an object.
323
346
* 6. If the value is a primitive, it will be returned as is.
324
347
* 7. If the value is a Regexp, Symbol we will convert it to the string representation.
325
348
* 8. BigInt and other typed arrays will be converted to a string unless number type works.
326
349
* 9. All other values will be returned as undefined (E.g., Buffer, DataView, Promises, Generators etc..)
350
+
* 10. If reading a value throws (e.g., a throwing getter or toJSON, or a revoked Proxy), that value will return undefined and the rest of the object is kept.
0 commit comments