Skip to content

[feature] Avoid sending duplicate usage metrics  #531

@pandafy

Description

@pandafy

⚠️ Not suitable to beginners

Is your feature request related to a problem? Please describe.
Currently, the metric usage data may be sent multiple times per day if the Django project is configured incorrectly. i

Describe the solution you'd like
I suggest that metric usage should be sent only once per day. To achieve this, we can calculate and store a hash of the payload along with the current date. On any given date, if the same payload is generated again, the hash should be checked before sending. If an identical hash (for the same date) already exists, skip sending to avoid duplication. This ensures each unique payload is sent at most once per day.

Metadata

Metadata

Assignees

Projects

Status

To do (general)

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions