Skip to content

[Usage Reports] Show usage details for deleted projects #76069

@souredoutlook

Description

@souredoutlook

Problem Statement

Usage reports don't show data for deleted projects (usage reports can be downloaded from here as an example https://us.sentry.io/organizations/some-slug/billing/history/some-id/export/)

This makes it impossible to match event totals from the report to bill totals

Solution Brainstorm

Show usage/outcomes from deleted projects on csv - obfuscate the project name and show

For now the workaround is for Support to explain to the customer the missing totals by getting the deleted project ID by inspecting audit log API request details and then running such a query in the usage database:

select sum(quantity), billing_metric from accounts_billingmetricusage where project_id = some_id and outcome = 0 and date >= '2024-08-05'::date group by billing_metric

Product Area

Unknown

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions