Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Use exporter metadata in remote evaluations #2983

Merged
merged 3 commits into from
Jan 27, 2025

Conversation

thomaspoignant
Copy link
Owner

Description

For server providers it is not enough to manage exporter metadata in the collector API since some evaluation are directly done remotely and are generating evaluation data directly in the provider.

With this PR we allow the possibility to add exporter metadata in the evaluation context and to use them inside the relay-proxy.

Checklist

  • I have tested this code
  • I have added unit test to cover this code
  • I have updated the documentation (README.md and /website/docs)
  • I have followed the contributing guide

Signed-off-by: Thomas Poignant <thomas.poignant@gofeatureflag.org>
Copy link

netlify bot commented Jan 24, 2025

Deploy Preview for go-feature-flag-doc-preview canceled.

Name Link
🔨 Latest commit b84fb73
🔍 Latest deploy log https://app.netlify.com/sites/go-feature-flag-doc-preview/deploys/679399a186e3e200086552cb

Copy link

codecov bot commented Jan 24, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.80%. Comparing base (6aca2c0) to head (b84fb73).
Report is 20 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2983      +/-   ##
==========================================
+ Coverage   84.72%   84.80%   +0.07%     
==========================================
  Files         113      113              
  Lines        5239     5246       +7     
==========================================
+ Hits         4439     4449      +10     
+ Misses        634      632       -2     
+ Partials      166      165       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@thomaspoignant thomaspoignant force-pushed the exporter-metadata-context branch from c62c501 to b84fb73 Compare January 24, 2025 13:46
Copy link

thomaspoignant added a commit to open-feature/ruby-sdk-contrib that referenced this pull request Jan 25, 2025
## This PR
In this PR we support `exporterMetadata` that will allow to add static
information that will be added to your feature event sent to the GO
Feature Flag exporter.

In this PR we add those exporter metadata to the evaluation context in
order to pass them to GO Feature Flag relay-proxy.


### Related Issues
thomaspoignant/go-feature-flag#2983

---------

Signed-off-by: Thomas Poignant <thomas.poignant@gofeatureflag.org>
@thomaspoignant thomaspoignant merged commit 2d17828 into main Jan 27, 2025
23 checks passed
@thomaspoignant thomaspoignant deleted the exporter-metadata-context branch January 27, 2025 08:42
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