Skip to content

Commit

Permalink
Instrument All Redis Client Methods (#576)
Browse files Browse the repository at this point in the history
* Initial test files

* Fully instrument uninstrumented redis client methods

Co-authored-by: Uma Annamalai <[email protected]>
Co-authored-by: ccedacero-nr <[email protected]>
Co-authored-by: Nyenty Ayuk <[email protected]>

* Fix older redis client tests

* Fix missing redis client method

* Remove sentinel from commands list

* Fix sentinels again

Co-authored-by: Uma Annamalai <[email protected]>
Co-authored-by: ccedacero-nr <[email protected]>
Co-authored-by: Nyenty Ayuk <[email protected]>
  • Loading branch information
4 people authored Jun 27, 2022
1 parent 0a4dbfc commit 7eba295
Show file tree
Hide file tree
Showing 4 changed files with 417 additions and 28 deletions.
24 changes: 24 additions & 0 deletions newrelic/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -2697,6 +2697,30 @@ def _process_module_builtin_defaults():
"redis.commands.core", "newrelic.hooks.datastore_redis", "instrument_redis_commands_core"
)

_process_module_definition(
"redis.commands.sentinel", "newrelic.hooks.datastore_redis", "instrument_redis_commands_sentinel"
)

_process_module_definition(
"redis.commands.json.commands", "newrelic.hooks.datastore_redis", "instrument_redis_commands_json_commands"
)

_process_module_definition(
"redis.commands.search.commands", "newrelic.hooks.datastore_redis", "instrument_redis_commands_search_commands"
)

_process_module_definition(
"redis.commands.timeseries.commands", "newrelic.hooks.datastore_redis", "instrument_redis_commands_timeseries_commands"
)

_process_module_definition(
"redis.commands.bf.commands", "newrelic.hooks.datastore_redis", "instrument_redis_commands_bf_commands"
)

_process_module_definition(
"redis.commands.graph.commands", "newrelic.hooks.datastore_redis", "instrument_redis_commands_graph_commands"
)

_process_module_definition("motor", "newrelic.hooks.datastore_motor", "patch_motor")

_process_module_definition(
Expand Down
Loading

0 comments on commit 7eba295

Please sign in to comment.