Advanced Usage
Advanced patterns and features for the Ruby SDK.Custom Transport
Use a custom HTTP client:Async Processing
Configure async behavior:Custom Fingerprinting
Control error grouping:Multi-Tenant Applications
Isolate data per tenant:HTTP Instrumentation
Automatically track outgoing HTTP requests:Net::HTTP requests are automatically tracked:
- Reflex breadcrumbs: Added to error context for debugging
- Recall logs: Debug-level logs for observability
- HTTP method and URL
- Status code
- Duration in milliseconds
- Error class (for failed requests)
Distributed Tracing
Propagate trace context:Performance Monitoring
Track custom metrics:Graceful Shutdown
Ensure logs are flushed on shutdown:at_exit handler to flush buffered logs.