Skip to content

API Reference - Event Schemas

Event

FieldTypeDescription
urlstringRequest URL path
endpointstringSame as URL (not normalized)
methodstringHTTP method
status_codeintResponse status code
request_headersobjectLowercased keys, sensitive values redacted
request_bodyanyParsed JSON when possible, 64KB cap
response_headersobjectLowercased keys
response_bodyanyParsed JSON when possible, 64KB cap
duration_msintResponse time in milliseconds
client_ipstringExtracted from proxy headers
{
"url": "/api/users/42",
"endpoint": "/api/users/42",
"method": "GET",
"status_code": 200,
"request_headers": {
"content-type": "application/json",
"authorization": "[REDACTED]"
},
"request_body": null,
"response_headers": { "content-type": "application/json" },
"response_body": {
"id": 42,
"name": "Jane Doe",
"email": "ja***@example.com"
},
"duration_ms": 23,
"client_ip": "203.0.113.42"
}

Error event

FieldTypeDescription
_typestringAlways "error"
error_typestringException class name
error_messagestringError message
levelstring"fatal", "error", or "warning"
fingerprintstring?Optional grouping key
stack_framesStackFrame[]Stack trace
request_urlstring?Request URL that caused it
request_methodstring?HTTP method
client_ipstring?Client IP
timestampintUnix milliseconds

Stack frame

FieldTypeDescription
filestringSource file path
lineintLine number
columnint?Column (Node.js only)
functionstringFunction name
contextstring[]?Surrounding source lines
in_appbooltrue if your code, false for library/runtime