Core Principle
The SDK never throws exceptions that could crash your application. Tracing is observability infrastructure - it should never break your production code.Fail-Silent Behavior
All errors are caught internally. If traces can’t be sent, they’re dropped:No exceptions means zero risk to your production application.
What Happens on Error
When errors occur:- Error is logged internally (if debug mode enabled)
- Trace is dropped silently
- Your application continues normally
- Optional error callback is called (if configured)
Custom Error Handling
To log errors for debugging:Callback function that receives errors. Use for logging or monitoring.
Network Failures
If the Artanis API is unreachable, traces are dropped silently to prevent memory leaks.Error Scenarios
Invalid API Key
Invalid API Key
What happens: API returns 401 UnauthorizedSDK behavior: Drops traces, logs errorHow to fix: Check your API key in dashboard
Network Timeout
Network Timeout
What happens: Network request times outSDK behavior: Drops traces after retry, logs errorHow to fix: Check network connectivity
Rate Limiting
Rate Limiting
What happens: API returns 429 Too Many RequestsSDK behavior: Backs off, drops traces if persistentHow to fix: Reduce trace volume or upgrade plan
Payload Too Large
Payload Too Large
What happens: API returns 413 Payload Too LargeSDK behavior: Drops trace, logs errorHow to fix: Reduce trace data size