Docs menu

Docs

Connect Railway

Codela checks every deploy against your Railway data. It needs a Railway API token (Railway has no read-only tokens; Codela only reads logs and deployments with it), and setup takes a couple of minutes.

RailwayBeta

What Codela reads

Request speed, error rates (5xx) and your busiest endpoints from the HTTP logs Railway keeps for each deployment, and error messages from your app's logs. Nothing to install in your app. It reads the minutes around each deploy, and once a week the last 24 hours for your production snapshot.

Create the key

  1. In Railway, open Account Settings → Tokens and create a token. Leave the workspace empty for an account token, or pick the project's workspace.
  2. Copy your project ID from the project's address (railway.com/project/…) or Project Settings. Pasting the whole address works too.

Connect it

On usecodela.com/connect, step 2, choose Railway and fill in:

FieldWhat to enter
Project IDThe project ID, or the project's railway.com address.
API tokenThe account or workspace token you just created.
EnvironmentOptional. Defaults to production.

Codela checks the key straight away, then lists your services so each repo can be matched to the right one.

Good to know

  • Each Railway service in the project is a service in Codela, matched to your repos by name.
  • The moments when Railway swaps the old deployment for the new one (brief 499s and 502/503/504s) and health checks never count against a deploy.
  • On a very busy service, Codela reads a sample of the newest requests around a deploy and scales the counts. Error messages are only compared when the whole window was read.
  • Railway can't see the calls your app makes to databases or other services, so lessons about slow downstream calls need a tracing tool such as SigNoz, Datadog or Sentry.

Next

See how deploys are checked and how lessons reach your agents. Questions about your setup? Email us from the integrations page.