From a63e33f277af0b10a9b48c1743587c00ec990633 Mon Sep 17 00:00:00 2001 From: Timothy Pansino <11214426+TimPansino@users.noreply.github.com> Date: Mon, 5 Dec 2022 16:18:08 -0800 Subject: [PATCH] Update instrumented methods in redis. (#707) Co-authored-by: Lalleh Rafeei <lrafeei@users.noreply.github.com> Co-authored-by: Uma Annamalai <umaannamalai@users.noreply.github.com> Co-authored-by: Hannah Stepanek <hmstepanek@users.noreply.github.com> Co-authored-by: Lalleh Rafeei <lrafeei@users.noreply.github.com> Co-authored-by: Uma Annamalai <umaannamalai@users.noreply.github.com> Co-authored-by: Hannah Stepanek <hmstepanek@users.noreply.github.com> --- newrelic/hooks/datastore_redis.py | 1 + .../test_uninstrumented_methods.py | 43 ++++++++++--------- 2 files changed, 23 insertions(+), 21 deletions(-) diff --git a/newrelic/hooks/datastore_redis.py b/newrelic/hooks/datastore_redis.py index 7ea60f1fa7..26d1facb0d 100644 --- a/newrelic/hooks/datastore_redis.py +++ b/newrelic/hooks/datastore_redis.py @@ -55,6 +55,7 @@ "bgsave", "bitcount", "bitfield", + "bitfield_ro", "bitop_and", "bitop_not", "bitop_or", diff --git a/tests/datastore_redis/test_uninstrumented_methods.py b/tests/datastore_redis/test_uninstrumented_methods.py index 314f9f2038..f9c6756592 100644 --- a/tests/datastore_redis/test_uninstrumented_methods.py +++ b/tests/datastore_redis/test_uninstrumented_methods.py @@ -27,6 +27,8 @@ 'MODULE_CALLBACKS', 'MODULE_VERSION', 'NAME', + "add_edge", + "add_node", "append_bucket_size", "append_capacity", "append_error", @@ -38,6 +40,10 @@ "append_no_scale", "append_values_and_weights", "append_weights", + "batch_indexer", + "BatchIndexer", + "bulk", + "call_procedure", "client_tracking_off", "client_tracking_on", "client", @@ -46,45 +52,40 @@ "connection_pool", "connection", "debug_segfault", + "edges", "execute_command", + "flush", "from_url", "get_connection_kwargs", "get_encoder", + "get_label", + "get_params_args", + "get_property", + "get_relation", + "get_retry", "hscan_iter", + "index_name", + "labels", + "list_keys", + "load_document", "load_external_module", "lock", + "name", + "nodes", "parse_response", "pipeline", + "property_keys", "register_script", + "relationship_types", "response_callbacks", "RESPONSE_CALLBACKS", "sentinel", "set_file", "set_path", "set_response_callback", + "set_retry", "transaction", - "BatchIndexer", - "batch_indexer", - "get_params_args", - "index_name", - "load_document", - "add_edge", - "add_node", - "bulk", - "call_procedure", - "edges", - "flush", - "get_label", - "get_property", - "get_relation", - "labels", - "list_keys", - "name", - "nodes", - "property_keys", - "relationship_types", "version", - } REDIS_MODULES = {