DocsError TrackingAPI Reference

Error Tracking API Reference

Complete API documentation for the Error Tracking feature across all supported engines.


Overview

All SDKs communicate with the Shard Launcher via HTTP POST to report errors. The API is consistent across engines with language-appropriate naming conventions.

Endpoint

POST http://localhost:9876/api/monitor/report

Payload

{
  "message": "Connection to server failed",
  "stackTrace": "at GameManager.Connect() line 42\nat Main.Start() line 15",
  "timestamp": "2024-01-15T10:30:00.000Z"
}

Report Error

Report an error to the Shard Launcher.

# Godot 4.x - Message only
ShardSDK.monitor.report_error("Connection failed")
 
# With stack trace
ShardSDK.monitor.report_error("Null reference error", stack_trace_string)
ParameterTypeDescription
messageStringError message
stack_traceStringStack trace (optional)

Configuration

All SDKs support the same configuration options:

SettingDefaultDescription
launcher_urlhttp://localhost:9876Shard Launcher URL
enable_monitortrueEnable/disable error reporting

Configure in Project Settings under shard_sdk/:

# Or programmatically
ShardSDK.launcher_url = "http://localhost:9876"
ShardSDK.enable_monitor = true

Error Handling

All SDKs use fire-and-forget HTTP requests with silent failure:

  • If the Shard Launcher is not running, calls silently fail
  • No exceptions are thrown to your game code
  • Network timeouts are handled automatically (5 second timeout)

Your game continues running normally even if the launcher is unavailable.


Engine-Specific Documentation

For detailed setup instructions, see your engine’s documentation: