Skip to content

Conversation

@dmarticus
Copy link
Contributor

See PostHog/posthog#41824 for context

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds support for capturing the evaluatedAt timestamp from feature flag API responses and including it in $feature_flag_called events as the $feature_flag_evaluated_at property. This aligns with the backend changes in PostHog (referenced PR #41824) that now return evaluation timestamps.

  • Extracts evaluatedAt from the /flags/?v=2 API response
  • Adds $feature_flag_evaluated_at to feature flag event properties when available
  • Follows the existing pattern used for requestId and flag metadata

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

@haacked haacked left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@github-project-automation github-project-automation bot moved this from In Review to Approved in Feature Flags Nov 24, 2025
@dmarticus dmarticus merged commit 4a489fb into master Dec 2, 2025
13 checks passed
@github-project-automation github-project-automation bot moved this from Approved to Done in Feature Flags Dec 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants