Railway Integration

Practical SDK setup for Railway services

Install

Use templates from sdk/integrations/railway.

Configuration

Set in your service:

  • OBTRACE_API_KEY
  • OBTRACE_INGEST_BASE_URL
  • OBTRACE_TENANT_ID
  • OBTRACE_PROJECT_ID
  • OBTRACE_ENV

Quick start

  1. Configure variables.
  2. Deploy with SDK initialization.
  3. Generate minimal traffic (API + frontend) and validate ingestion.

Production hardening

  1. Separate keys by environment/service.
  2. Keep server keys out of client code.
  3. 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.

On this page