Skip to content

Commit

Permalink
added back tracer_utils_redis with deprecation warn
Browse files Browse the repository at this point in the history
  • Loading branch information
erikayasuda committed May 1, 2024
1 parent c8b907b commit 9d6a060
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions ddtrace/contrib/trace_utils_redis.py
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)

0 comments on commit 9d6a060

Please sign in to comment.