couchbase 3.7.0 → 3.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/ext/CMakeLists.txt +4 -1
- data/ext/cache/extconf_include.rb +4 -3
- data/ext/cache/mozilla-ca-bundle.crt +66 -93
- data/ext/cache/mozilla-ca-bundle.sha256 +1 -1
- data/ext/couchbase/CMakeLists.txt +24 -11
- data/ext/couchbase/cmake/APKBUILD.in +17 -1
- data/ext/couchbase/cmake/Bundler.cmake +9 -1
- data/ext/couchbase/cmake/Cache.cmake +48 -19
- data/ext/couchbase/cmake/CompilerOptions.cmake +3 -1
- data/ext/couchbase/cmake/OpenSSL.cmake +10 -2
- data/ext/couchbase/cmake/Packaging.cmake +48 -8
- data/ext/couchbase/cmake/ThirdPartyDependencies.cmake +43 -1
- data/ext/couchbase/cmake/build_config.hxx.in +2 -0
- data/ext/couchbase/cmake/couchbase-cxx-client.spec.in +18 -0
- data/ext/couchbase/cmake/tarball_glob.txt +10 -0
- data/ext/couchbase/core/app_telemetry_meter.cxx +1 -0
- data/ext/couchbase/core/app_telemetry_reporter.cxx +45 -43
- data/ext/couchbase/core/app_telemetry_reporter.hxx +4 -3
- data/ext/couchbase/core/bucket.cxx +128 -13
- data/ext/couchbase/core/bucket.hxx +12 -2
- data/ext/couchbase/core/cluster.cxx +304 -152
- data/ext/couchbase/core/cluster.hxx +32 -0
- data/ext/couchbase/core/cluster_credentials.cxx +25 -0
- data/ext/couchbase/core/cluster_credentials.hxx +5 -0
- data/ext/couchbase/core/cluster_label_listener.cxx +72 -0
- data/ext/couchbase/core/cluster_label_listener.hxx +46 -0
- data/ext/couchbase/core/cluster_options.hxx +4 -0
- data/ext/couchbase/core/deprecation_utils.hxx +26 -0
- data/ext/couchbase/core/error.hxx +27 -0
- data/ext/couchbase/core/free_form_http_request.hxx +0 -2
- data/ext/couchbase/core/http_component.cxx +12 -48
- data/ext/couchbase/core/impl/analytics.cxx +3 -2
- data/ext/couchbase/core/impl/analytics.hxx +2 -1
- data/ext/couchbase/core/impl/analytics_index_manager.cxx +249 -137
- data/ext/couchbase/core/impl/binary_collection.cxx +134 -58
- data/ext/couchbase/core/impl/bucket_manager.cxx +87 -35
- data/ext/couchbase/core/impl/collection.cxx +560 -245
- data/ext/couchbase/core/impl/collection_manager.cxx +89 -49
- data/ext/couchbase/core/impl/dns_srv_tracker.cxx +4 -4
- data/ext/couchbase/core/impl/error.cxx +20 -13
- data/ext/couchbase/core/impl/error.hxx +15 -10
- data/ext/couchbase/core/impl/get_all_replicas.hxx +1 -1
- data/ext/couchbase/core/impl/get_any_replica.hxx +2 -1
- data/ext/couchbase/core/impl/get_replica.hxx +2 -0
- data/ext/couchbase/core/impl/lookup_in_replica.hxx +1 -1
- data/ext/couchbase/core/impl/observability_recorder.cxx +161 -0
- data/ext/couchbase/core/impl/observability_recorder.hxx +77 -0
- data/ext/couchbase/core/impl/observe_seqno.hxx +2 -0
- data/ext/couchbase/core/impl/public_bucket.cxx +31 -7
- data/ext/couchbase/core/impl/public_cluster.cxx +107 -19
- data/ext/couchbase/core/impl/query.cxx +6 -3
- data/ext/couchbase/core/impl/query.hxx +3 -1
- data/ext/couchbase/core/impl/query_index_manager.cxx +267 -102
- data/ext/couchbase/core/impl/scope.cxx +53 -11
- data/ext/couchbase/core/impl/search.cxx +8 -4
- data/ext/couchbase/core/impl/search.hxx +6 -2
- data/ext/couchbase/core/impl/search_index_manager.cxx +131 -41
- data/ext/couchbase/core/impl/with_cancellation.hxx +75 -0
- data/ext/couchbase/core/io/config_tracker.cxx +9 -9
- data/ext/couchbase/core/io/config_tracker.hxx +2 -1
- data/ext/couchbase/core/io/http_command.hxx +98 -49
- data/ext/couchbase/core/io/http_context.hxx +2 -0
- data/ext/couchbase/core/io/http_session.cxx +23 -10
- data/ext/couchbase/core/io/http_session.hxx +17 -9
- data/ext/couchbase/core/io/http_session_manager.hxx +163 -228
- data/ext/couchbase/core/io/http_traits.hxx +0 -7
- data/ext/couchbase/core/io/mcbp_command.hxx +123 -44
- data/ext/couchbase/core/io/mcbp_session.cxx +251 -26
- data/ext/couchbase/core/io/mcbp_session.hxx +9 -1
- data/ext/couchbase/core/io/mcbp_traits.hxx +0 -8
- data/ext/couchbase/core/io/streams.cxx +3 -3
- data/ext/couchbase/core/io/streams.hxx +3 -2
- data/ext/couchbase/core/meta/features.hxx +15 -0
- data/ext/couchbase/core/meta/version.cxx +13 -0
- data/ext/couchbase/core/meta/version.hxx +3 -0
- data/ext/couchbase/core/metrics/constants.hxx +23 -0
- data/ext/couchbase/core/metrics/logging_meter.cxx +5 -5
- data/ext/couchbase/core/metrics/meter_wrapper.cxx +65 -63
- data/ext/couchbase/core/metrics/meter_wrapper.hxx +12 -10
- data/ext/couchbase/core/operations/document_analytics.hxx +0 -5
- data/ext/couchbase/core/operations/document_append.hxx +0 -4
- data/ext/couchbase/core/operations/document_decrement.hxx +0 -5
- data/ext/couchbase/core/operations/document_exists.hxx +0 -7
- data/ext/couchbase/core/operations/document_get.hxx +0 -7
- data/ext/couchbase/core/operations/document_get_all_replicas.hxx +77 -27
- data/ext/couchbase/core/operations/document_get_and_lock.hxx +0 -9
- data/ext/couchbase/core/operations/document_get_and_touch.hxx +0 -9
- data/ext/couchbase/core/operations/document_get_any_replica.hxx +83 -2
- data/ext/couchbase/core/operations/document_get_projected.hxx +0 -9
- data/ext/couchbase/core/operations/document_increment.hxx +0 -5
- data/ext/couchbase/core/operations/document_insert.hxx +0 -4
- data/ext/couchbase/core/operations/document_lookup_in.hxx +0 -9
- data/ext/couchbase/core/operations/document_lookup_in_all_replicas.hxx +46 -4
- data/ext/couchbase/core/operations/document_lookup_in_any_replica.hxx +121 -43
- data/ext/couchbase/core/operations/document_mutate_in.hxx +0 -5
- data/ext/couchbase/core/operations/document_prepend.hxx +0 -4
- data/ext/couchbase/core/operations/document_query.hxx +0 -4
- data/ext/couchbase/core/operations/document_remove.hxx +0 -4
- data/ext/couchbase/core/operations/document_replace.hxx +0 -4
- data/ext/couchbase/core/operations/document_search.hxx +0 -7
- data/ext/couchbase/core/operations/document_touch.hxx +0 -7
- data/ext/couchbase/core/operations/document_unlock.hxx +0 -6
- data/ext/couchbase/core/operations/document_upsert.hxx +0 -4
- data/ext/couchbase/core/operations/document_view.cxx +2 -0
- data/ext/couchbase/core/operations/document_view.hxx +10 -13
- data/ext/couchbase/core/operations/http_noop.hxx +2 -0
- data/ext/couchbase/core/operations/management/analytics_dataset_create.hxx +2 -0
- data/ext/couchbase/core/operations/management/analytics_dataset_drop.hxx +2 -0
- data/ext/couchbase/core/operations/management/analytics_dataset_get_all.hxx +2 -0
- data/ext/couchbase/core/operations/management/analytics_dataverse_create.hxx +2 -0
- data/ext/couchbase/core/operations/management/analytics_dataverse_drop.hxx +2 -0
- data/ext/couchbase/core/operations/management/analytics_get_pending_mutations.hxx +2 -0
- data/ext/couchbase/core/operations/management/analytics_index_create.hxx +2 -0
- data/ext/couchbase/core/operations/management/analytics_index_drop.hxx +2 -0
- data/ext/couchbase/core/operations/management/analytics_index_get_all.hxx +2 -0
- data/ext/couchbase/core/operations/management/analytics_link_connect.hxx +2 -0
- data/ext/couchbase/core/operations/management/analytics_link_create.hxx +2 -0
- data/ext/couchbase/core/operations/management/analytics_link_disconnect.hxx +2 -0
- data/ext/couchbase/core/operations/management/analytics_link_drop.hxx +2 -0
- data/ext/couchbase/core/operations/management/analytics_link_get_all.hxx +2 -0
- data/ext/couchbase/core/operations/management/analytics_link_replace.hxx +2 -0
- data/ext/couchbase/core/operations/management/bucket_create.hxx +2 -0
- data/ext/couchbase/core/operations/management/bucket_describe.hxx +2 -0
- data/ext/couchbase/core/operations/management/bucket_drop.hxx +2 -0
- data/ext/couchbase/core/operations/management/bucket_flush.hxx +2 -0
- data/ext/couchbase/core/operations/management/bucket_get.hxx +2 -0
- data/ext/couchbase/core/operations/management/bucket_get_all.hxx +2 -0
- data/ext/couchbase/core/operations/management/bucket_update.hxx +2 -0
- data/ext/couchbase/core/operations/management/change_password.hxx +2 -0
- data/ext/couchbase/core/operations/management/cluster_describe.hxx +2 -0
- data/ext/couchbase/core/operations/management/cluster_developer_preview_enable.hxx +2 -0
- data/ext/couchbase/core/operations/management/collection_create.hxx +2 -0
- data/ext/couchbase/core/operations/management/collection_drop.hxx +2 -0
- data/ext/couchbase/core/operations/management/collection_update.hxx +2 -0
- data/ext/couchbase/core/operations/management/collections_manifest_get.hxx +2 -0
- data/ext/couchbase/core/operations/management/error_utils.cxx +4 -1
- data/ext/couchbase/core/operations/management/eventing_deploy_function.hxx +2 -0
- data/ext/couchbase/core/operations/management/eventing_drop_function.hxx +2 -0
- data/ext/couchbase/core/operations/management/eventing_get_all_functions.hxx +2 -0
- data/ext/couchbase/core/operations/management/eventing_get_function.hxx +2 -0
- data/ext/couchbase/core/operations/management/eventing_get_status.hxx +2 -0
- data/ext/couchbase/core/operations/management/eventing_pause_function.hxx +2 -0
- data/ext/couchbase/core/operations/management/eventing_resume_function.hxx +2 -0
- data/ext/couchbase/core/operations/management/eventing_undeploy_function.hxx +2 -0
- data/ext/couchbase/core/operations/management/eventing_upsert_function.hxx +2 -0
- data/ext/couchbase/core/operations/management/freeform.hxx +2 -0
- data/ext/couchbase/core/operations/management/group_drop.hxx +2 -0
- data/ext/couchbase/core/operations/management/group_get.hxx +2 -0
- data/ext/couchbase/core/operations/management/group_get_all.hxx +2 -0
- data/ext/couchbase/core/operations/management/group_upsert.hxx +2 -0
- data/ext/couchbase/core/operations/management/query_index_build.hxx +2 -0
- data/ext/couchbase/core/operations/management/query_index_build_deferred.hxx +68 -30
- data/ext/couchbase/core/operations/management/query_index_create.hxx +2 -0
- data/ext/couchbase/core/operations/management/query_index_drop.hxx +2 -0
- data/ext/couchbase/core/operations/management/query_index_get_all.hxx +4 -3
- data/ext/couchbase/core/operations/management/query_index_get_all_deferred.hxx +2 -1
- data/ext/couchbase/core/operations/management/role_get_all.hxx +2 -0
- data/ext/couchbase/core/operations/management/scope_create.hxx +2 -0
- data/ext/couchbase/core/operations/management/scope_drop.hxx +2 -0
- data/ext/couchbase/core/operations/management/scope_get_all.hxx +2 -0
- data/ext/couchbase/core/operations/management/search_get_stats.hxx +2 -0
- data/ext/couchbase/core/operations/management/search_index_analyze_document.hxx +2 -0
- data/ext/couchbase/core/operations/management/search_index_control_ingest.hxx +2 -0
- data/ext/couchbase/core/operations/management/search_index_control_plan_freeze.hxx +2 -0
- data/ext/couchbase/core/operations/management/search_index_control_query.hxx +2 -0
- data/ext/couchbase/core/operations/management/search_index_drop.hxx +2 -0
- data/ext/couchbase/core/operations/management/search_index_get.hxx +2 -0
- data/ext/couchbase/core/operations/management/search_index_get_all.hxx +2 -0
- data/ext/couchbase/core/operations/management/search_index_get_documents_count.hxx +2 -0
- data/ext/couchbase/core/operations/management/search_index_get_stats.hxx +2 -0
- data/ext/couchbase/core/operations/management/search_index_upsert.hxx +2 -0
- data/ext/couchbase/core/operations/management/user_drop.hxx +2 -0
- data/ext/couchbase/core/operations/management/user_get.hxx +2 -0
- data/ext/couchbase/core/operations/management/user_get_all.hxx +2 -0
- data/ext/couchbase/core/operations/management/user_upsert.hxx +2 -0
- data/ext/couchbase/core/operations/management/view_index_drop.hxx +2 -0
- data/ext/couchbase/core/operations/management/view_index_get.hxx +2 -0
- data/ext/couchbase/core/operations/management/view_index_get_all.hxx +2 -0
- data/ext/couchbase/core/operations/management/view_index_upsert.hxx +2 -0
- data/ext/couchbase/core/operations/operation_traits.hxx +6 -0
- data/ext/couchbase/core/operations.hxx +0 -1
- data/ext/couchbase/core/operations_fwd.hxx +8 -0
- data/ext/couchbase/core/origin.cxx +67 -12
- data/ext/couchbase/core/origin.hxx +13 -8
- data/ext/couchbase/core/orphan_reporter.cxx +164 -0
- data/ext/couchbase/core/orphan_reporter.hxx +65 -0
- data/ext/couchbase/core/sasl/CMakeLists.txt +1 -0
- data/ext/couchbase/core/sasl/client.cc +6 -0
- data/ext/couchbase/core/sasl/mechanism.cc +2 -1
- data/ext/couchbase/core/sasl/mechanism.h +2 -1
- data/ext/couchbase/core/sasl/oauthbearer/oauthbearer.cc +41 -0
- data/ext/couchbase/core/sasl/oauthbearer/oauthbearer.h +47 -0
- data/ext/couchbase/core/tls_context_provider.cxx +44 -0
- data/ext/couchbase/core/tls_context_provider.hxx +44 -0
- data/ext/couchbase/core/tracing/attribute_helpers.hxx +45 -0
- data/ext/couchbase/core/tracing/constants.hxx +148 -68
- data/ext/couchbase/core/tracing/threshold_logging_options.hxx +0 -3
- data/ext/couchbase/core/tracing/threshold_logging_tracer.cxx +122 -170
- data/ext/couchbase/core/tracing/tracer_wrapper.cxx +17 -24
- data/ext/couchbase/core/tracing/tracer_wrapper.hxx +8 -10
- data/ext/couchbase/core/tracing/wrapper_sdk_tracer.cxx +114 -0
- data/ext/couchbase/core/tracing/wrapper_sdk_tracer.hxx +85 -0
- data/ext/couchbase/core/transactions/attempt_context_impl.cxx +16 -14
- data/ext/couchbase/core/transactions/attempt_context_impl.hxx +4 -4
- data/ext/couchbase/core/transactions/transactions.cxx +1 -1
- data/ext/couchbase/core/transactions/transactions_cleanup.cxx +1 -2
- data/ext/couchbase/core/utils/byteswap.hxx +12 -0
- data/ext/couchbase/core/utils/concurrent_fixed_priority_queue.hxx +102 -0
- data/ext/couchbase/core/utils/connection_string.cxx +2 -0
- data/ext/couchbase/couchbase/certificate_authenticator.hxx +1 -0
- data/ext/couchbase/couchbase/cluster.hxx +47 -0
- data/ext/couchbase/couchbase/cluster_options.hxx +16 -0
- data/ext/couchbase/couchbase/collection.hxx +60 -15
- data/ext/couchbase/couchbase/error_codes.hxx +48 -48
- data/ext/couchbase/couchbase/jwt_authenticator.hxx +52 -0
- data/ext/couchbase/couchbase/metrics/meter.hxx +2 -1
- data/ext/couchbase/couchbase/metrics/otel_meter.hxx +75 -80
- data/ext/couchbase/couchbase/network_options.hxx +19 -0
- data/ext/couchbase/couchbase/password_authenticator.hxx +1 -0
- data/ext/couchbase/couchbase/tracing/otel_tracer.hxx +15 -17
- data/ext/couchbase/couchbase/tracing/request_span.hxx +2 -2
- data/ext/couchbase.cxx +4 -0
- data/ext/extconf.rb +1 -0
- data/ext/rcb_analytics.cxx +157 -47
- data/ext/rcb_backend.cxx +118 -71
- data/ext/rcb_buckets.cxx +39 -16
- data/ext/rcb_collections.cxx +36 -12
- data/ext/rcb_crud.cxx +587 -294
- data/ext/rcb_hdr_histogram.cxx +219 -0
- data/ext/rcb_hdr_histogram.hxx +28 -0
- data/ext/rcb_multi.cxx +142 -59
- data/ext/rcb_observability.cxx +132 -0
- data/ext/rcb_observability.hxx +49 -0
- data/ext/rcb_query.cxx +77 -27
- data/ext/rcb_search.cxx +92 -31
- data/ext/rcb_users.cxx +69 -26
- data/ext/rcb_utils.cxx +91 -0
- data/ext/rcb_utils.hxx +141 -168
- data/ext/rcb_views.cxx +36 -12
- data/lib/active_support/cache/couchbase_store.rb +6 -6
- data/lib/couchbase/authenticator.rb +14 -0
- data/lib/couchbase/binary_collection.rb +37 -22
- data/lib/couchbase/bucket.rb +46 -31
- data/lib/couchbase/cluster.rb +146 -61
- data/lib/couchbase/collection.rb +257 -186
- data/lib/couchbase/datastructures/couchbase_list.rb +81 -50
- data/lib/couchbase/datastructures/couchbase_map.rb +86 -50
- data/lib/couchbase/datastructures/couchbase_queue.rb +64 -38
- data/lib/couchbase/datastructures/couchbase_set.rb +57 -41
- data/lib/couchbase/deprecations.rb +1 -1
- data/lib/couchbase/diagnostics.rb +8 -8
- data/lib/couchbase/errors.rb +6 -0
- data/lib/couchbase/management/analytics_index_manager.rb +90 -59
- data/lib/couchbase/management/bucket_manager.rb +73 -45
- data/lib/couchbase/management/collection_manager.rb +86 -43
- data/lib/couchbase/management/collection_query_index_manager.rb +56 -33
- data/lib/couchbase/management/query_index_manager.rb +88 -36
- data/lib/couchbase/management/scope_search_index_manager.rb +119 -52
- data/lib/couchbase/management/search_index_manager.rb +401 -178
- data/lib/couchbase/management/user_manager.rb +343 -174
- data/lib/couchbase/management/view_index_manager.rb +166 -73
- data/lib/couchbase/metrics/logging_meter.rb +108 -0
- data/lib/couchbase/metrics/logging_value_recorder.rb +50 -0
- data/lib/couchbase/metrics/meter.rb +27 -0
- data/lib/couchbase/metrics/noop_meter.rb +30 -0
- data/lib/couchbase/metrics/noop_value_recorder.rb +27 -0
- data/lib/couchbase/metrics/value_recorder.rb +25 -0
- data/lib/couchbase/options.rb +69 -3
- data/lib/couchbase/protostellar/cluster.rb +3 -0
- data/lib/couchbase/scope.rb +62 -48
- data/lib/couchbase/search_options.rb +18 -18
- data/lib/couchbase/tracing/noop_span.rb +29 -0
- data/lib/couchbase/tracing/noop_tracer.rb +29 -0
- data/lib/couchbase/tracing/request_span.rb +34 -0
- data/lib/couchbase/tracing/request_tracer.rb +28 -0
- data/lib/couchbase/tracing/threshold_logging_span.rb +112 -0
- data/lib/couchbase/tracing/threshold_logging_tracer.rb +231 -0
- data/lib/couchbase/utils/hdr_histogram.rb +55 -0
- data/lib/couchbase/utils/observability.rb +257 -0
- data/lib/couchbase/utils/observability_constants.rb +200 -0
- data/lib/couchbase/utils/stdlib_logger_adapter.rb +1 -3
- data/lib/couchbase/version.rb +1 -1
- data/lib/couchbase.rb +2 -2
- metadata +58 -6
data/ext/rcb_search.cxx
CHANGED
|
@@ -39,6 +39,7 @@
|
|
|
39
39
|
#include <ruby.h>
|
|
40
40
|
|
|
41
41
|
#include "rcb_backend.hxx"
|
|
42
|
+
#include "rcb_observability.hxx"
|
|
42
43
|
#include "rcb_utils.hxx"
|
|
43
44
|
|
|
44
45
|
namespace couchbase::ruby
|
|
@@ -71,7 +72,11 @@ cb_extract_search_index(VALUE index, const core::management::search::index& idx)
|
|
|
71
72
|
}
|
|
72
73
|
|
|
73
74
|
VALUE
|
|
74
|
-
cb_Backend_search_index_get_all(VALUE self,
|
|
75
|
+
cb_Backend_search_index_get_all(VALUE self,
|
|
76
|
+
VALUE bucket,
|
|
77
|
+
VALUE scope,
|
|
78
|
+
VALUE options,
|
|
79
|
+
VALUE observability_handler)
|
|
75
80
|
{
|
|
76
81
|
auto cluster = cb_backend_to_core_api_cluster(self);
|
|
77
82
|
|
|
@@ -87,12 +92,14 @@ cb_Backend_search_index_get_all(VALUE self, VALUE bucket, VALUE scope, VALUE opt
|
|
|
87
92
|
}
|
|
88
93
|
|
|
89
94
|
cb_extract_timeout(req, options);
|
|
95
|
+
auto parent_span = cb_create_parent_span(req, self);
|
|
90
96
|
std::promise<core::operations::management::search_index_get_all_response> promise;
|
|
91
97
|
auto f = promise.get_future();
|
|
92
98
|
cluster.execute(req, [promise = std::move(promise)](auto&& resp) mutable {
|
|
93
99
|
promise.set_value(std::forward<decltype(resp)>(resp));
|
|
94
100
|
});
|
|
95
101
|
auto resp = cb_wait_for_future(f);
|
|
102
|
+
cb_add_core_spans(observability_handler, std::move(parent_span), resp.ctx.retry_attempts);
|
|
96
103
|
if (resp.ctx.ec) {
|
|
97
104
|
cb_throw_error(resp.ctx, "unable to get list of the search indexes");
|
|
98
105
|
}
|
|
@@ -117,7 +124,12 @@ cb_Backend_search_index_get_all(VALUE self, VALUE bucket, VALUE scope, VALUE opt
|
|
|
117
124
|
}
|
|
118
125
|
|
|
119
126
|
VALUE
|
|
120
|
-
cb_Backend_search_index_get(VALUE self,
|
|
127
|
+
cb_Backend_search_index_get(VALUE self,
|
|
128
|
+
VALUE bucket,
|
|
129
|
+
VALUE scope,
|
|
130
|
+
VALUE index_name,
|
|
131
|
+
VALUE timeout,
|
|
132
|
+
VALUE observability_handler)
|
|
121
133
|
{
|
|
122
134
|
auto cluster = cb_backend_to_core_api_cluster(self);
|
|
123
135
|
|
|
@@ -135,12 +147,14 @@ cb_Backend_search_index_get(VALUE self, VALUE bucket, VALUE scope, VALUE index_n
|
|
|
135
147
|
}
|
|
136
148
|
cb_extract_timeout(req, timeout);
|
|
137
149
|
req.index_name = cb_string_new(index_name);
|
|
150
|
+
auto parent_span = cb_create_parent_span(req, self);
|
|
138
151
|
std::promise<core::operations::management::search_index_get_response> promise;
|
|
139
152
|
auto f = promise.get_future();
|
|
140
153
|
cluster.execute(req, [promise = std::move(promise)](auto&& resp) mutable {
|
|
141
154
|
promise.set_value(std::forward<decltype(resp)>(resp));
|
|
142
155
|
});
|
|
143
156
|
auto resp = cb_wait_for_future(f);
|
|
157
|
+
cb_add_core_spans(observability_handler, std::move(parent_span), resp.ctx.retry_attempts);
|
|
144
158
|
if (resp.ctx.ec) {
|
|
145
159
|
if (resp.error.empty()) {
|
|
146
160
|
cb_throw_error(resp.ctx, fmt::format("unable to get search index \"{}\"", req.index_name));
|
|
@@ -167,7 +181,8 @@ cb_Backend_search_index_upsert(VALUE self,
|
|
|
167
181
|
VALUE bucket,
|
|
168
182
|
VALUE scope,
|
|
169
183
|
VALUE index_definition,
|
|
170
|
-
VALUE timeout
|
|
184
|
+
VALUE timeout,
|
|
185
|
+
VALUE observability_handler)
|
|
171
186
|
{
|
|
172
187
|
auto cluster = cb_backend_to_core_api_cluster(self);
|
|
173
188
|
|
|
@@ -233,12 +248,15 @@ cb_Backend_search_index_upsert(VALUE self,
|
|
|
233
248
|
req.index.plan_params_json = cb_string_new(plan_params);
|
|
234
249
|
}
|
|
235
250
|
|
|
251
|
+
auto parent_span = cb_create_parent_span(req, self);
|
|
252
|
+
|
|
236
253
|
std::promise<core::operations::management::search_index_upsert_response> promise;
|
|
237
254
|
auto f = promise.get_future();
|
|
238
255
|
cluster.execute(req, [promise = std::move(promise)](auto&& resp) mutable {
|
|
239
256
|
promise.set_value(std::forward<decltype(resp)>(resp));
|
|
240
257
|
});
|
|
241
258
|
auto resp = cb_wait_for_future(f);
|
|
259
|
+
cb_add_core_spans(observability_handler, std::move(parent_span), resp.ctx.retry_attempts);
|
|
242
260
|
if (resp.ctx.ec) {
|
|
243
261
|
if (resp.error.empty()) {
|
|
244
262
|
cb_throw_error(resp.ctx,
|
|
@@ -262,7 +280,12 @@ cb_Backend_search_index_upsert(VALUE self,
|
|
|
262
280
|
}
|
|
263
281
|
|
|
264
282
|
VALUE
|
|
265
|
-
cb_Backend_search_index_drop(VALUE self,
|
|
283
|
+
cb_Backend_search_index_drop(VALUE self,
|
|
284
|
+
VALUE bucket,
|
|
285
|
+
VALUE scope,
|
|
286
|
+
VALUE index_name,
|
|
287
|
+
VALUE timeout,
|
|
288
|
+
VALUE observability_handler)
|
|
266
289
|
{
|
|
267
290
|
auto cluster = cb_backend_to_core_api_cluster(self);
|
|
268
291
|
|
|
@@ -280,12 +303,14 @@ cb_Backend_search_index_drop(VALUE self, VALUE bucket, VALUE scope, VALUE index_
|
|
|
280
303
|
}
|
|
281
304
|
cb_extract_timeout(req, timeout);
|
|
282
305
|
req.index_name = cb_string_new(index_name);
|
|
306
|
+
auto parent_span = cb_create_parent_span(req, self);
|
|
283
307
|
std::promise<core::operations::management::search_index_drop_response> promise;
|
|
284
308
|
auto f = promise.get_future();
|
|
285
309
|
cluster.execute(req, [promise = std::move(promise)](auto&& resp) mutable {
|
|
286
310
|
promise.set_value(std::forward<decltype(resp)>(resp));
|
|
287
311
|
});
|
|
288
312
|
auto resp = cb_wait_for_future(f);
|
|
313
|
+
cb_add_core_spans(observability_handler, std::move(parent_span), resp.ctx.retry_attempts);
|
|
289
314
|
if (resp.ctx.ec) {
|
|
290
315
|
if (resp.error.empty()) {
|
|
291
316
|
cb_throw_error(resp.ctx,
|
|
@@ -313,7 +338,8 @@ cb_Backend_search_index_get_documents_count(VALUE self,
|
|
|
313
338
|
VALUE bucket,
|
|
314
339
|
VALUE scope,
|
|
315
340
|
VALUE index_name,
|
|
316
|
-
VALUE timeout
|
|
341
|
+
VALUE timeout,
|
|
342
|
+
VALUE observability_handler)
|
|
317
343
|
{
|
|
318
344
|
auto cluster = cb_backend_to_core_api_cluster(self);
|
|
319
345
|
|
|
@@ -331,12 +357,14 @@ cb_Backend_search_index_get_documents_count(VALUE self,
|
|
|
331
357
|
}
|
|
332
358
|
cb_extract_timeout(req, timeout);
|
|
333
359
|
req.index_name = cb_string_new(index_name);
|
|
360
|
+
auto parent_span = cb_create_parent_span(req, self);
|
|
334
361
|
std::promise<core::operations::management::search_index_get_documents_count_response> promise;
|
|
335
362
|
auto f = promise.get_future();
|
|
336
363
|
cluster.execute(req, [promise = std::move(promise)](auto&& resp) mutable {
|
|
337
364
|
promise.set_value(std::forward<decltype(resp)>(resp));
|
|
338
365
|
});
|
|
339
366
|
auto resp = cb_wait_for_future(f);
|
|
367
|
+
cb_add_core_spans(observability_handler, std::move(parent_span), resp.ctx.retry_attempts);
|
|
340
368
|
if (resp.ctx.ec) {
|
|
341
369
|
if (resp.error.empty()) {
|
|
342
370
|
cb_throw_error(
|
|
@@ -366,7 +394,10 @@ cb_Backend_search_index_get_documents_count(VALUE self,
|
|
|
366
394
|
}
|
|
367
395
|
|
|
368
396
|
VALUE
|
|
369
|
-
cb_Backend_search_index_get_stats(VALUE self,
|
|
397
|
+
cb_Backend_search_index_get_stats(VALUE self,
|
|
398
|
+
VALUE index_name,
|
|
399
|
+
VALUE timeout,
|
|
400
|
+
VALUE observability_handler)
|
|
370
401
|
{
|
|
371
402
|
auto cluster = cb_backend_to_core_api_cluster(self);
|
|
372
403
|
|
|
@@ -376,12 +407,14 @@ cb_Backend_search_index_get_stats(VALUE self, VALUE index_name, VALUE timeout)
|
|
|
376
407
|
core::operations::management::search_index_get_stats_request req{};
|
|
377
408
|
cb_extract_timeout(req, timeout);
|
|
378
409
|
req.index_name = cb_string_new(index_name);
|
|
410
|
+
auto parent_span = cb_create_parent_span(req, self);
|
|
379
411
|
std::promise<core::operations::management::search_index_get_stats_response> promise;
|
|
380
412
|
auto f = promise.get_future();
|
|
381
413
|
cluster.execute(req, [promise = std::move(promise)](auto&& resp) mutable {
|
|
382
414
|
promise.set_value(std::forward<decltype(resp)>(resp));
|
|
383
415
|
});
|
|
384
416
|
auto resp = cb_wait_for_future(f);
|
|
417
|
+
cb_add_core_spans(observability_handler, std::move(parent_span), resp.ctx.retry_attempts);
|
|
385
418
|
if (resp.ctx.ec) {
|
|
386
419
|
if (resp.error.empty()) {
|
|
387
420
|
cb_throw_error(
|
|
@@ -404,19 +437,21 @@ cb_Backend_search_index_get_stats(VALUE self, VALUE index_name, VALUE timeout)
|
|
|
404
437
|
}
|
|
405
438
|
|
|
406
439
|
VALUE
|
|
407
|
-
cb_Backend_search_get_stats(VALUE self, VALUE timeout)
|
|
440
|
+
cb_Backend_search_get_stats(VALUE self, VALUE timeout, VALUE observability_handler)
|
|
408
441
|
{
|
|
409
442
|
auto cluster = cb_backend_to_core_api_cluster(self);
|
|
410
443
|
|
|
411
444
|
try {
|
|
412
445
|
core::operations::management::search_get_stats_request req{};
|
|
413
446
|
cb_extract_timeout(req, timeout);
|
|
447
|
+
auto parent_span = cb_create_parent_span(req, self);
|
|
414
448
|
std::promise<core::operations::management::search_get_stats_response> promise;
|
|
415
449
|
auto f = promise.get_future();
|
|
416
450
|
cluster.execute(req, [promise = std::move(promise)](auto&& resp) mutable {
|
|
417
451
|
promise.set_value(std::forward<decltype(resp)>(resp));
|
|
418
452
|
});
|
|
419
453
|
auto resp = cb_wait_for_future(f);
|
|
454
|
+
cb_add_core_spans(observability_handler, std::move(parent_span), resp.ctx.retry_attempts);
|
|
420
455
|
if (resp.ctx.ec) {
|
|
421
456
|
cb_throw_error(resp.ctx, "unable to get stats for the search service");
|
|
422
457
|
}
|
|
@@ -435,7 +470,8 @@ cb_Backend_search_index_pause_ingest(VALUE self,
|
|
|
435
470
|
VALUE bucket,
|
|
436
471
|
VALUE scope,
|
|
437
472
|
VALUE index_name,
|
|
438
|
-
VALUE timeout
|
|
473
|
+
VALUE timeout,
|
|
474
|
+
VALUE observability_handler)
|
|
439
475
|
{
|
|
440
476
|
auto cluster = cb_backend_to_core_api_cluster(self);
|
|
441
477
|
|
|
@@ -454,12 +490,14 @@ cb_Backend_search_index_pause_ingest(VALUE self,
|
|
|
454
490
|
cb_extract_timeout(req, timeout);
|
|
455
491
|
req.index_name = cb_string_new(index_name);
|
|
456
492
|
req.pause = true;
|
|
493
|
+
auto parent_span = cb_create_parent_span(req, self);
|
|
457
494
|
std::promise<core::operations::management::search_index_control_ingest_response> promise;
|
|
458
495
|
auto f = promise.get_future();
|
|
459
496
|
cluster.execute(req, [promise = std::move(promise)](auto&& resp) mutable {
|
|
460
497
|
promise.set_value(std::forward<decltype(resp)>(resp));
|
|
461
498
|
});
|
|
462
499
|
auto resp = cb_wait_for_future(f);
|
|
500
|
+
cb_add_core_spans(observability_handler, std::move(parent_span), resp.ctx.retry_attempts);
|
|
463
501
|
if (resp.ctx.ec) {
|
|
464
502
|
if (resp.error.empty()) {
|
|
465
503
|
cb_throw_error(
|
|
@@ -489,7 +527,8 @@ cb_Backend_search_index_resume_ingest(VALUE self,
|
|
|
489
527
|
VALUE bucket,
|
|
490
528
|
VALUE scope,
|
|
491
529
|
VALUE index_name,
|
|
492
|
-
VALUE timeout
|
|
530
|
+
VALUE timeout,
|
|
531
|
+
VALUE observability_handler)
|
|
493
532
|
{
|
|
494
533
|
auto cluster = cb_backend_to_core_api_cluster(self);
|
|
495
534
|
|
|
@@ -508,12 +547,14 @@ cb_Backend_search_index_resume_ingest(VALUE self,
|
|
|
508
547
|
cb_extract_timeout(req, timeout);
|
|
509
548
|
req.index_name = cb_string_new(index_name);
|
|
510
549
|
req.pause = false;
|
|
550
|
+
auto parent_span = cb_create_parent_span(req, self);
|
|
511
551
|
std::promise<core::operations::management::search_index_control_ingest_response> promise;
|
|
512
552
|
auto f = promise.get_future();
|
|
513
553
|
cluster.execute(req, [promise = std::move(promise)](auto&& resp) mutable {
|
|
514
554
|
promise.set_value(std::forward<decltype(resp)>(resp));
|
|
515
555
|
});
|
|
516
556
|
auto resp = cb_wait_for_future(f);
|
|
557
|
+
cb_add_core_spans(observability_handler, std::move(parent_span), resp.ctx.retry_attempts);
|
|
517
558
|
if (resp.ctx.ec) {
|
|
518
559
|
if (resp.error.empty()) {
|
|
519
560
|
cb_throw_error(
|
|
@@ -543,7 +584,8 @@ cb_Backend_search_index_allow_querying(VALUE self,
|
|
|
543
584
|
VALUE bucket,
|
|
544
585
|
VALUE scope,
|
|
545
586
|
VALUE index_name,
|
|
546
|
-
VALUE timeout
|
|
587
|
+
VALUE timeout,
|
|
588
|
+
VALUE observability_handler)
|
|
547
589
|
{
|
|
548
590
|
auto cluster = cb_backend_to_core_api_cluster(self);
|
|
549
591
|
|
|
@@ -562,12 +604,14 @@ cb_Backend_search_index_allow_querying(VALUE self,
|
|
|
562
604
|
cb_extract_timeout(req, timeout);
|
|
563
605
|
req.index_name = cb_string_new(index_name);
|
|
564
606
|
req.allow = true;
|
|
607
|
+
auto parent_span = cb_create_parent_span(req, self);
|
|
565
608
|
std::promise<core::operations::management::search_index_control_query_response> promise;
|
|
566
609
|
auto f = promise.get_future();
|
|
567
610
|
cluster.execute(req, [promise = std::move(promise)](auto&& resp) mutable {
|
|
568
611
|
promise.set_value(std::forward<decltype(resp)>(resp));
|
|
569
612
|
});
|
|
570
613
|
auto resp = cb_wait_for_future(f);
|
|
614
|
+
cb_add_core_spans(observability_handler, std::move(parent_span), resp.ctx.retry_attempts);
|
|
571
615
|
if (resp.ctx.ec) {
|
|
572
616
|
if (resp.error.empty()) {
|
|
573
617
|
cb_throw_error(
|
|
@@ -597,7 +641,8 @@ cb_Backend_search_index_disallow_querying(VALUE self,
|
|
|
597
641
|
VALUE bucket,
|
|
598
642
|
VALUE scope,
|
|
599
643
|
VALUE index_name,
|
|
600
|
-
VALUE timeout
|
|
644
|
+
VALUE timeout,
|
|
645
|
+
VALUE observability_handler)
|
|
601
646
|
{
|
|
602
647
|
auto cluster = cb_backend_to_core_api_cluster(self);
|
|
603
648
|
|
|
@@ -616,12 +661,14 @@ cb_Backend_search_index_disallow_querying(VALUE self,
|
|
|
616
661
|
cb_extract_timeout(req, timeout);
|
|
617
662
|
req.index_name = cb_string_new(index_name);
|
|
618
663
|
req.allow = false;
|
|
664
|
+
auto parent_span = cb_create_parent_span(req, self);
|
|
619
665
|
std::promise<core::operations::management::search_index_control_query_response> promise;
|
|
620
666
|
auto f = promise.get_future();
|
|
621
667
|
cluster.execute(req, [promise = std::move(promise)](auto&& resp) mutable {
|
|
622
668
|
promise.set_value(std::forward<decltype(resp)>(resp));
|
|
623
669
|
});
|
|
624
670
|
auto resp = cb_wait_for_future(f);
|
|
671
|
+
cb_add_core_spans(observability_handler, std::move(parent_span), resp.ctx.retry_attempts);
|
|
625
672
|
if (resp.ctx.ec) {
|
|
626
673
|
if (resp.error.empty()) {
|
|
627
674
|
cb_throw_error(
|
|
@@ -651,7 +698,8 @@ cb_Backend_search_index_freeze_plan(VALUE self,
|
|
|
651
698
|
VALUE bucket,
|
|
652
699
|
VALUE scope,
|
|
653
700
|
VALUE index_name,
|
|
654
|
-
VALUE timeout
|
|
701
|
+
VALUE timeout,
|
|
702
|
+
VALUE observability_handler)
|
|
655
703
|
{
|
|
656
704
|
auto cluster = cb_backend_to_core_api_cluster(self);
|
|
657
705
|
|
|
@@ -670,12 +718,14 @@ cb_Backend_search_index_freeze_plan(VALUE self,
|
|
|
670
718
|
cb_extract_timeout(req, timeout);
|
|
671
719
|
req.index_name = cb_string_new(index_name);
|
|
672
720
|
req.freeze = true;
|
|
721
|
+
auto parent_span = cb_create_parent_span(req, self);
|
|
673
722
|
std::promise<core::operations::management::search_index_control_plan_freeze_response> promise;
|
|
674
723
|
auto f = promise.get_future();
|
|
675
724
|
cluster.execute(req, [promise = std::move(promise)](auto&& resp) mutable {
|
|
676
725
|
promise.set_value(std::forward<decltype(resp)>(resp));
|
|
677
726
|
});
|
|
678
727
|
auto resp = cb_wait_for_future(f);
|
|
728
|
+
cb_add_core_spans(observability_handler, std::move(parent_span), resp.ctx.retry_attempts);
|
|
679
729
|
if (resp.ctx.ec) {
|
|
680
730
|
if (resp.error.empty()) {
|
|
681
731
|
cb_throw_error(resp.ctx,
|
|
@@ -704,7 +754,8 @@ cb_Backend_search_index_unfreeze_plan(VALUE self,
|
|
|
704
754
|
VALUE bucket,
|
|
705
755
|
VALUE scope,
|
|
706
756
|
VALUE index_name,
|
|
707
|
-
VALUE timeout
|
|
757
|
+
VALUE timeout,
|
|
758
|
+
VALUE observability_handler)
|
|
708
759
|
{
|
|
709
760
|
auto cluster = cb_backend_to_core_api_cluster(self);
|
|
710
761
|
|
|
@@ -723,12 +774,14 @@ cb_Backend_search_index_unfreeze_plan(VALUE self,
|
|
|
723
774
|
cb_extract_timeout(req, timeout);
|
|
724
775
|
req.index_name = cb_string_new(index_name);
|
|
725
776
|
req.freeze = false;
|
|
777
|
+
auto parent_span = cb_create_parent_span(req, self);
|
|
726
778
|
std::promise<core::operations::management::search_index_control_plan_freeze_response> promise;
|
|
727
779
|
auto f = promise.get_future();
|
|
728
780
|
cluster.execute(req, [promise = std::move(promise)](auto&& resp) mutable {
|
|
729
781
|
promise.set_value(std::forward<decltype(resp)>(resp));
|
|
730
782
|
});
|
|
731
783
|
auto resp = cb_wait_for_future(f);
|
|
784
|
+
cb_add_core_spans(observability_handler, std::move(parent_span), resp.ctx.retry_attempts);
|
|
732
785
|
if (resp.ctx.ec) {
|
|
733
786
|
if (resp.error.empty()) {
|
|
734
787
|
cb_throw_error(
|
|
@@ -759,7 +812,8 @@ cb_Backend_search_index_analyze_document(VALUE self,
|
|
|
759
812
|
VALUE scope,
|
|
760
813
|
VALUE index_name,
|
|
761
814
|
VALUE encoded_document,
|
|
762
|
-
VALUE timeout
|
|
815
|
+
VALUE timeout,
|
|
816
|
+
VALUE observability_handler)
|
|
763
817
|
{
|
|
764
818
|
auto cluster = cb_backend_to_core_api_cluster(self);
|
|
765
819
|
|
|
@@ -781,12 +835,15 @@ cb_Backend_search_index_analyze_document(VALUE self,
|
|
|
781
835
|
req.index_name = cb_string_new(index_name);
|
|
782
836
|
req.encoded_document = cb_string_new(encoded_document);
|
|
783
837
|
|
|
838
|
+
auto parent_span = cb_create_parent_span(req, self);
|
|
839
|
+
|
|
784
840
|
std::promise<core::operations::management::search_index_analyze_document_response> promise;
|
|
785
841
|
auto f = promise.get_future();
|
|
786
842
|
cluster.execute(req, [promise = std::move(promise)](auto&& resp) mutable {
|
|
787
843
|
promise.set_value(std::forward<decltype(resp)>(resp));
|
|
788
844
|
});
|
|
789
845
|
auto resp = cb_wait_for_future(f);
|
|
846
|
+
cb_add_core_spans(observability_handler, std::move(parent_span), resp.ctx.retry_attempts);
|
|
790
847
|
if (resp.ctx.ec) {
|
|
791
848
|
if (resp.error.empty()) {
|
|
792
849
|
cb_throw_error(
|
|
@@ -834,7 +891,8 @@ cb_Backend_document_search(VALUE self,
|
|
|
834
891
|
VALUE index_name,
|
|
835
892
|
VALUE query,
|
|
836
893
|
VALUE search_request,
|
|
837
|
-
VALUE options
|
|
894
|
+
VALUE options,
|
|
895
|
+
VALUE observability_handler)
|
|
838
896
|
{
|
|
839
897
|
auto cluster = cb_backend_to_core_api_cluster(self);
|
|
840
898
|
|
|
@@ -1017,12 +1075,15 @@ cb_Backend_document_search(VALUE self,
|
|
|
1017
1075
|
rb_hash_foreach(raw_params, cb_for_each_raw_param, reinterpret_cast<VALUE>(&req));
|
|
1018
1076
|
}
|
|
1019
1077
|
|
|
1078
|
+
auto parent_span = cb_create_parent_span(req, self);
|
|
1079
|
+
|
|
1020
1080
|
std::promise<core::operations::search_response> promise;
|
|
1021
1081
|
auto f = promise.get_future();
|
|
1022
1082
|
cluster.execute(req, [promise = std::move(promise)](auto&& resp) mutable {
|
|
1023
1083
|
promise.set_value(std::forward<decltype(resp)>(resp));
|
|
1024
1084
|
});
|
|
1025
1085
|
auto resp = cb_wait_for_future(f);
|
|
1086
|
+
cb_add_core_spans(observability_handler, std::move(parent_span), resp.ctx.retry_attempts);
|
|
1026
1087
|
if (resp.ctx.ec) {
|
|
1027
1088
|
cb_throw_error(resp.ctx,
|
|
1028
1089
|
fmt::format("unable to perform search query for index \"{}\": {}",
|
|
@@ -1190,27 +1251,27 @@ cb_Backend_document_search(VALUE self,
|
|
|
1190
1251
|
void
|
|
1191
1252
|
init_search(VALUE cBackend)
|
|
1192
1253
|
{
|
|
1193
|
-
rb_define_method(cBackend, "document_search", cb_Backend_document_search,
|
|
1194
|
-
|
|
1195
|
-
rb_define_method(cBackend, "search_get_stats", cb_Backend_search_get_stats,
|
|
1196
|
-
rb_define_method(cBackend, "search_index_get_all", cb_Backend_search_index_get_all,
|
|
1197
|
-
rb_define_method(cBackend, "search_index_get", cb_Backend_search_index_get,
|
|
1198
|
-
rb_define_method(cBackend, "search_index_upsert", cb_Backend_search_index_upsert,
|
|
1199
|
-
rb_define_method(cBackend, "search_index_drop", cb_Backend_search_index_drop,
|
|
1200
|
-
rb_define_method(cBackend, "search_index_get_stats", cb_Backend_search_index_get_stats,
|
|
1254
|
+
rb_define_method(cBackend, "document_search", cb_Backend_document_search, 7);
|
|
1255
|
+
|
|
1256
|
+
rb_define_method(cBackend, "search_get_stats", cb_Backend_search_get_stats, 2);
|
|
1257
|
+
rb_define_method(cBackend, "search_index_get_all", cb_Backend_search_index_get_all, 4);
|
|
1258
|
+
rb_define_method(cBackend, "search_index_get", cb_Backend_search_index_get, 5);
|
|
1259
|
+
rb_define_method(cBackend, "search_index_upsert", cb_Backend_search_index_upsert, 5);
|
|
1260
|
+
rb_define_method(cBackend, "search_index_drop", cb_Backend_search_index_drop, 5);
|
|
1261
|
+
rb_define_method(cBackend, "search_index_get_stats", cb_Backend_search_index_get_stats, 3);
|
|
1201
1262
|
rb_define_method(
|
|
1202
|
-
cBackend, "search_index_get_documents_count", cb_Backend_search_index_get_documents_count,
|
|
1203
|
-
rb_define_method(cBackend, "search_index_pause_ingest", cb_Backend_search_index_pause_ingest,
|
|
1263
|
+
cBackend, "search_index_get_documents_count", cb_Backend_search_index_get_documents_count, 5);
|
|
1264
|
+
rb_define_method(cBackend, "search_index_pause_ingest", cb_Backend_search_index_pause_ingest, 5);
|
|
1204
1265
|
rb_define_method(
|
|
1205
|
-
cBackend, "search_index_resume_ingest", cb_Backend_search_index_resume_ingest,
|
|
1266
|
+
cBackend, "search_index_resume_ingest", cb_Backend_search_index_resume_ingest, 5);
|
|
1206
1267
|
rb_define_method(
|
|
1207
|
-
cBackend, "search_index_allow_querying", cb_Backend_search_index_allow_querying,
|
|
1268
|
+
cBackend, "search_index_allow_querying", cb_Backend_search_index_allow_querying, 5);
|
|
1208
1269
|
rb_define_method(
|
|
1209
|
-
cBackend, "search_index_disallow_querying", cb_Backend_search_index_disallow_querying,
|
|
1210
|
-
rb_define_method(cBackend, "search_index_freeze_plan", cb_Backend_search_index_freeze_plan,
|
|
1270
|
+
cBackend, "search_index_disallow_querying", cb_Backend_search_index_disallow_querying, 5);
|
|
1271
|
+
rb_define_method(cBackend, "search_index_freeze_plan", cb_Backend_search_index_freeze_plan, 5);
|
|
1211
1272
|
rb_define_method(
|
|
1212
|
-
cBackend, "search_index_unfreeze_plan", cb_Backend_search_index_unfreeze_plan,
|
|
1273
|
+
cBackend, "search_index_unfreeze_plan", cb_Backend_search_index_unfreeze_plan, 5);
|
|
1213
1274
|
rb_define_method(
|
|
1214
|
-
cBackend, "search_index_analyze_document", cb_Backend_search_index_analyze_document,
|
|
1275
|
+
cBackend, "search_index_analyze_document", cb_Backend_search_index_analyze_document, 6);
|
|
1215
1276
|
}
|
|
1216
1277
|
} // namespace couchbase::ruby
|