Discord

Cost Attribution in Discord’s API

Jun 30, 2026
Cost Attribution in Discord’s API
SummaryAI, from the source post

This post details how Discord extended its application's profiling tooling to allocate hosting costs for its unified Python API codebase based on the time spent on feature-related code. This allows for granular cost attribution at the API endpoint and background task level, addressing the challenge of a shared codebase across many deployments.