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

Async call to the exporter in non-bulk mode #1500

Merged
merged 3 commits into from
Feb 1, 2024

Conversation

thomaspoignant
Copy link
Owner

Description

When in a non-bulk mode the call to the exporter was synchronous, which can cause delay in the flag evaluation.
This PR ensure we use a goroutine to call the exporter.

Checklist

Signed-off-by: Thomas Poignant <[email protected]>
Copy link

netlify bot commented Feb 1, 2024

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

Name Link
🔨 Latest commit 4765257
🔍 Latest deploy log https://app.netlify.com/sites/go-feature-flag-doc-preview/deploys/65bbd1dc5b4df90008b4fb98

Copy link

sonarcloud bot commented Feb 1, 2024

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

Copy link

codecov bot commented Feb 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (c0a1f8d) 88.35% compared to head (4765257) 88.36%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1500   +/-   ##
=======================================
  Coverage   88.35%   88.36%           
=======================================
  Files          75       75           
  Lines        3496     3498    +2     
=======================================
+ Hits         3089     3091    +2     
  Misses        332      332           
  Partials       75       75           

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

@kodiakhq kodiakhq bot merged commit c659e2a into main Feb 1, 2024
21 checks passed
@kodiakhq kodiakhq bot deleted the fix-non-blocking-data-exporter branch February 1, 2024 17:22
thomaspoignant added a commit that referenced this pull request Sep 5, 2024
* async call to exporter

Signed-off-by: Thomas Poignant <[email protected]>

* Fix test to be comptible with async call

Signed-off-by: Thomas Poignant <[email protected]>

---------

Signed-off-by: Thomas Poignant <[email protected]>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant