#36879: Add Django cache identification to Redis client metadata
-------------------------------------+-------------------------------------
     Reporter:  Vasil Chomakov       |                    Owner:  (none)
         Type:  New feature          |                   Status:  new
    Component:  Core (Cache system)  |                  Version:  dev
     Severity:  Normal               |               Resolution:
     Keywords:  redis cache          |             Triage Stage:
  observability                      |  Unreviewed
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Comment (by Vasil Chomakov):

 I suggest using `DriverInfo` when available (can be successfully imported)
 and falling back to `lib_name` and `lib_version` if `redis-py` does not
 yet support it.

 IMPORTANT: Note that when manually set, `lib_name` and `lib_version`
 should look like this:
 * `lib_name` = `redis-py(django-cache_v{django-cache-version})`
 * `lib_version` = `{redis-py-version}`
 per Redis `CLIENT SETINFO` documentation:
 https://redis.io/docs/latest/commands/client-setinfo/
-- 
Ticket URL: <https://code.djangoproject.com/ticket/36879#comment:6>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/django-updates/0107019bf079d9d0-b0d65262-3b2b-43cf-8aa3-09b8adba86fd-000000%40eu-central-1.amazonses.com.

Reply via email to