Retries, rate limits and tracing
Adapter design. This page specifies the unpublished adapter. Run a request with Octokit and Effect.
By default the adapter adds zero retry schedules. A supplied full Octokit profile already includes retry and throttling plugins; @octokit/rest has a different plugin list. Preserve caller configuration, retry counters, primary/secondary callbacks, reservoir sharing and optional clustering. An Effect retry outside the SDK multiplies attempts. An upstream timer or queued limiter job may outlive the waiting fiber; test whether cancelling during backoff prevents the queued request from reaching the transport.
Allow applications to compose timeout, concurrency and retry policies explicitly. Respect Retry-After and reset-time units when exposing hints. For an interrupted write or lost response, the server may have accepted the mutation. Replaying a comment, token rotation, deployment, upload or one-shot stream can duplicate work or consume an exhausted body. Leave idempotency and replay decisions at the call site.
Use the route template, SDK operation family, status, request ID and attempt count for optional spans. Identify an outer operation separately from any observed HTTP attempts. Never attach authorization, raw URLs with secrets, GraphQL variables, response bodies, webhook payloads or identifying repository names by default. Reuse the client’s logger; avoid duplicate request logging and global hooks. Test trace context across callback bridges and compare fetch counts with upstream plugins enabled and disabled. Umbrella defaults · Throttling · Retry