Skip to content

Commit 6575dd2

Browse files
feat: Expose telemetry exception message in API/SDK
1 parent f9decdd commit 6575dd2

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 127
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel/kernel-f0003e336fc8dc54d9cac4728c847fb80c32d50a9165738c5b70aa83a09bb0f5.yml
3-
openapi_spec_hash: a2099eec27728b1cfd9032dc71b9bb57
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel/kernel-1413d61d06059008b4c1e204c783d8b2e7dca9af23f6e3b6d2552493ea2d9853.yml
3+
openapi_spec_hash: 80aca500caddd300cb03a6daf568fddb
44
config_hash: 77ee715aa17061166f9a02b264a21b8d

src/kernel/types/browsers/browser_console_error_event.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,12 @@ class Data(BrowserEventContext):
1919
"""
2020

2121
text: str
22-
"""Error message text. Present in both source paths."""
22+
"""Human-readable error text, as the browser console would display it.
23+
24+
For console.error() calls, the first argument coerced to a string. For uncaught
25+
exceptions, the prefix and error message, e.g. "Uncaught Error: boom" or
26+
"Uncaught (in promise) TypeError: x is not a function".
27+
"""
2328

2429
args: Optional[List[str]] = None
2530
"""All console arguments coerced to strings.

0 commit comments

Comments
 (0)