Railway Integration
Practical SDK setup for Railway services
Install
Use templates from sdk/integrations/railway.
Configuration
Set in your service:
OBTRACE_API_KEYOBTRACE_INGEST_BASE_URLOBTRACE_TENANT_IDOBTRACE_PROJECT_IDOBTRACE_ENV
Quick start
- Configure variables.
- Deploy with SDK initialization.
- Generate minimal traffic (API + frontend) and validate ingestion.
Production hardening
- Separate keys by environment/service.
- Keep server keys out of client code.
- Monitor latency and retries after deploy.
Troubleshooting
- Missing browser events: check env vars at build/runtime.
- Backend denied: validate key and ingest URL.
- Intermittent failures: review egress and timeouts.