# Serverpod configuration

`TalariaServerpod.init` takes the same `TalariaOptions` as [Dart](https://docs.newtalaria.com/sdk/dart/configuration.md). `attach` registers a shutdown task that flushes spans when the server stops. If you shut down another way: `await Talaria.flush(); await Talaria.close();`.

Skip more routes with `TalariaServerpod.attach(pod, skip: (url) => url.path.startsWith('/internal/'))`. To mount the middleware yourself, use `talariaRelicMiddleware`.

A `tal_pk_` key logs one warning. Leave `url` unset on Talaria Cloud.
