-
Notifications
You must be signed in to change notification settings - Fork 412
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added back tracer_utils_redis with deprecation warn
- Loading branch information
1 parent
c8b907b
commit 9d6a060
Showing
1 changed file
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
from ddtrace.contrib.redis_utils import determine_row_count | ||
from ddtrace.contrib.redis_utils import stringify_cache_args | ||
from ddtrace.internal.utils.deprecations import DDTraceDeprecationWarning | ||
from ddtrace.vendor.debtcollector import deprecate | ||
|
||
|
||
deprecate( | ||
"The ddtrace.contrib.tracer_utils_redis module is deprecated and will be removed.", | ||
message="A new interface will be provided by the ddtrace.contrib.redis_utils.", | ||
category=DDTraceDeprecationWarning, | ||
) | ||
|
||
|
||
format_command_args = stringify_cache_args | ||
|
||
|
||
def determine_row_count(redis_command, span, result): # noqa: F811 | ||
determine_row_count(redis_command=redis_command, result=result) |