posthog icon indicating copy to clipboard operation
posthog copied to clipboard

refactor(flags): Standardize tombstone counter labels across Python and Rust

Open haacked opened this issue 2 weeks ago • 0 comments

Problem

In our Grafana dashboard, I noticed the tombstone panel had an entry like posthog//flag_dependency_missing. That's because the Tombstone metrics in Rust don't match the schema of the metrics in Python.

Changes

  • Use consistent label names: namespace, operation, component
  • Remove high-cardinality labels (team_id, flag_id) from metrics
  • Log details separately to avoid cardinality issues
  • Update TOMBSTONE_COUNTER description to document this approach

How did you test this code?

Unit Tests

👉 Stay up-to-date with PostHog coding conventions for a smoother review.

Changelog: (features only) Is this feature complete?

haacked avatar Dec 08 '25 21:12 haacked