Skip to content

Segment membership inspection metrics and logs #7413

Closed as not planned
Closed as not planned

Description

@khvn26

Scope

Implement the metrics and structured logs named in the RFC's Observability section:

  • Counters: flagsmith_segment_membership_atom_evaluations_total, flagsmith_segment_membership_bitmap_ops_total, flagsmith_segment_membership_backfill_identities_total.
  • Histograms: flagsmith_segment_membership_read_latency_seconds, flagsmith_segment_membership_write_latency_seconds, flagsmith_segment_membership_write_to_visible_seconds, flagsmith_segment_membership_backfill_duration_seconds.
  • Gauges: flagsmith_segment_membership_atoms_per_env, flagsmith_segment_membership_bitmap_bytes_per_env.
  • Structlog events: segment_membership.atom.created, segment_membership.atom.backfilled, segment_membership.query.served, segment_membership.backfill.failed.

Acceptance criteria

  • Metrics show up in /metrics after the index has handled at least one read / write / backfill.
  • Histogram bucket boundaries cover the SLO targets in flagsmith/pulumi#208.
  • Each metric carries a description following the api/README.md "Code guidelines: metrics" naming.

Activity

  1. added
    apiIssue related to the REST API
    on May 4, 2026
  2. khvn26 commented on May 9, 2026

    @khvn26
    MemberAuthor

    Closing as not planned. Replaced by #7469 — V1 (Beta) epic for the columnar design. The bitmap design this issue was scoped against was retired at the 5/5/2026 RFC review in favour of the columnar approach now shipping in Alpha. See Segment Membership Inspection (columnar) (private to Flagsmith team) for the new RFC.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    apiIssue related to the REST API

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions