ddtrace/contrib/django/utils.py
def _resource_from_cache_prefix(resource, cache):
    """
    Combine the resource name with the cache prefix (if any)
    """
    if getattr(cache, "key_prefix", None):
        name = "{} {}".format(resource, cache.key_prefix)
    else:
        name = resource

    # enforce lowercase to make the output nicer to read
    return name.lower()

    Combine the resource name with the cache prefix (if any)
    
Combine the resource name with the cache prefix (if any)
Combine the resource name with the cache prefix ( if any )
def _resource_from_cache_prefix(resource, cache):
    if getattr(cache, "key_prefix", None):
        name = "{} {}".format(resource, cache.key_prefix)
    else:
        name = resource
    return name.lower()
def _resource_from_cache_prefix ( resource , cache ) : if getattr ( cache , "key_prefix" , None ) : name = "{} {}" . format ( resource , cache . key_prefix ) else : name = resource return name . lower ( )
Combine the resource name with the cache prefix (if any)
Combine the resource name with the cache prefix ( if any )
"""
    Combine the resource name with the cache prefix (if any)
    """ # enforce lowercase to make the output nicer to read
resource
cache