Skip to content

Migrate SamplingPolicy timestamp fields to Jiff #790

Description

@danbi2990

Background

SamplingPolicy is a stored table value and public table type with a creation_time chrono field. It is related to policy configuration, but it is independent enough to migrate as its own implementation issue.

Prerequisites

  • Default bincode table value baseline has landed.
  • The table-value implementation umbrella is open and linked.
  • Old-byte fixture coverage for the exact SamplingPolicy stored value exists before production type changes are made, or this issue adds that fixture coverage first.

Scope

  • Migrate SamplingPolicy.creation_time.
  • Preserve stored bincode compatibility where possible.
  • Review public table API impact.

Acceptance criteria

  • Old SamplingPolicy stored bytes remain readable, or data migration is explicitly implemented.
  • creation_time semantics are preserved.
  • Existing sampling policy table tests still pass.
  • Public/API impact is visible in tests or compile checks.
  • Any remaining chrono usage in the sampling policy surface is explicitly justified.

Out of scope

  • Triage policy surfaces.
  • Final chrono dependency cleanup.

Notes

Related discussion: #733

Activity

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

Metadata

Metadata

Assignees

Labels

blockedPending another issue

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions