Skip to content

Add feature instance to feature_operation instrumentation payload#998

Merged
jnunemaker merged 1 commit into
mainfrom
add-feature-to-instrumentation
May 29, 2026
Merged

Add feature instance to feature_operation instrumentation payload#998
jnunemaker merged 1 commit into
mainfrom
add-feature-to-instrumentation

Conversation

@jnunemaker

Copy link
Copy Markdown
Collaborator

Summary

  • Adds payload[:feature] to the feature_operation.flipper instrumentation payload so subscribers can access the Feature instance (and its adapter) directly instead of looking it up by name.
  • Adds a regression test that subscribes via the Memory instrumenter, calls enable(:search) on a Flipper DSL, and asserts both the feature and its adapter are present on the payload.

Test plan

  • bundle exec rspec spec/flipper/feature_spec.rb

Subscribers can now access the Feature directly via payload[:feature]
instead of having to look it up by name through a Flipper DSL instance.
This is useful for snapshotting feature state at the point of operation.
@jnunemaker jnunemaker merged commit 12a6915 into main May 29, 2026
46 checks passed
@jnunemaker jnunemaker deleted the add-feature-to-instrumentation branch May 29, 2026 17:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant