error event records a game error: an engine or script error that the SDK captures, or your own track_error() call. A hang (the main thread blocked for 5 seconds or more) is also an error, with error_type game_hang. It is a track event with the same player, session, build and platform as your other events. So you can use it in funnels, filters and charts. Error tracking groups errors and shows the crash-free rates.
A crash is its own event: see game crash.
When it is sent
Code examples are in Error tracking and on each SDK page.
Properties
You can add your own properties to a
track_error() call, within the limit of 50 properties and 8 KB.
Hangs
When the main thread is blocked for at least the hang limit (5 seconds by default), the SDK records anerror. The error has error_type game_hang, severity error, handled false and source auto. The message is “The main thread was blocked for N s”.
- A hang that ends is sent after the game runs again, with
hang_duration_s. - The game SDKs write the hang to disk while the game is stuck. So a hang that ends in a kill is sent at the next launch. Then the
game_crashof that run hashang_message_id, themessage_idof the hang. - No hang is counted while the game is paused, unfocused, or loading a map, or after the computer sleeps. The Web SDK never counts one while the page is hidden.
- Change the limit (1 to 60 seconds) or turn it off with 0:
hang_threshold_seconds(Godot),HangThresholdSeconds(Unity), Hang Threshold Seconds (Unreal), orhangThresholdMs(Web SDK, in milliseconds).
Limits
To protect your game and your event volume, the SDKs limit errors:track_error() calls skip only the session limit. The next session_end has the number of dropped errors in errors_dropped.
Grouping
Errors group byerror_type, file and function (not the line number). Without a file or function, they group by the message with numbers and quoted text removed: Save failed for slot 3 and Save failed for slot 4 are one group. Set fingerprint to group in your own way.
Sample payload
FAQ
Do captured errors contain personal data?
Do captured errors contain personal data?
The SDKs clean captured engine and browser messages before they are queued: home folders, URL users, queries and fragments, emails and token values are removed. The text that you pass to
track_error() is sent as it is. Use before_send to drop or change errors. See remove personal data.Why is an error missing?
Why is an error missing?
The limits drop repeated errors. Check
errors_dropped on session_end. Godot captures engine errors only on Godot 4.5 and later. On older versions, call track_error().Can I send errors from another engine?
Can I send errors from another engine?
Yes. Send
error events to the events endpoint with the same property names, so the Game health dashboard and the Errors page read them.