-
Notifications
You must be signed in to change notification settings - Fork 10
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
feat(ffi) expose kv & metrics shms through FFI #582
Conversation
a1b9043
to
5384812
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #582 +/- ##
====================================================
- Coverage 90.60900% 62.97581% -27.63319%
====================================================
Files 49 49
Lines 10936 9510 -1426
====================================================
- Hits 9909 5989 -3920
- Misses 1027 3521 +2494
... and 37 files with indirect coverage changes
Flags with carried forward coverage won't be shown. Click here to find out more. |
5384812
to
78097bb
Compare
f79dad6
to
239bc8c
Compare
ae9316e
to
dc68e4a
Compare
dc68e4a
to
698a670
Compare
698a670
to
3feee24
Compare
f3cb5a7
to
b53f649
Compare
fa15534
to
090e322
Compare
a288360
to
eb0e552
Compare
3d4a233
to
bdee12d
Compare
bdee12d
to
728c175
Compare
This corrects metrics code to properly use ngx_wasm_shm facilities for shm zone handling.
Previously `ngx_wa_metrics_get` would refuse to return a histogram and return an NGX_ABORT instead. This was due to Proxy-Wasm not supporting histogram retrieval. However, the upcoming FFI interface to shms will allow histograms to be retrieved. Also merges `ngx_wa_metrics_histogram.h` into `ngx_wa_metrics.h` as histogram declaration was already in `ngx_wa_metrics.h` and removing `ngx_wa_metrics_histogram.h` simplifies usage of the lib.
After changing the metrics library to rely on shm facilities to store its shm zone, support for the IPC subsystem in shm became necessary.
Iterating a tree in batches without knowing the number of elements in it implies an additional traversal through its elements after the last batch is retrieved. This last traversal returns no elements which signals the end of the iteration. Knowing the number of entries in the tree renders the additional traverse unnecessary, when the last batch is retrieved it can be verified that the tree has been fully iterated.
728c175
to
eef9838
Compare
No description provided.