Commit 934d269
authored
Add client info reporting (#155)
We need to be able to track the usage of clients for measuring adoption
and impact. The `CLIENT SETINFO` command can be used for this purpose.
The required string format is documented
[here](https://redis.io/docs/latest/commands/client-setinfo/#:~:text=The%20CLIENT%20SETINFO%20command%20assigns,CLIENT%20LIST%20and%20CLIENT%20INFO%20).
### Variants
- Standalone RedisVL:
```
CLIENT SETINFO LIB-NAME redis-py(redisvl_v0.2.0)
CLIENT SETINFO LIB-VER 5.0.4
```
- Abstraction layers (like LlamaIndex or LangChain):
```
CLIENT SETINFO LIB-NAME redis-py(redisvl_v0.2.0;llama-index-vector-stores-redis_v0.1.0)
CLIENT SETINFO LIB-VER 5.0.4
```
### Constraints
- RedisVL uses both Async connection and standard connection instances
from Redis Py
- So the technique to run this command needs to properly handle this...
- Other wrappers around RedisVL like LangChain and LlamaIndex will need
to pass through their lib_name
- These libraries generally support the notion of providing your own
client instance OR providing the connection string and performing the
connection on your behalf -- which also adds some difficulty.
### Planned Route
In order to build the proper name string, all clients that wrap redis-py
will need to use the following format:
```
{package-name}_v{version}
```
RedisVL will implement the default which is `redisvl_v0.x.x`, but outer
wrappers of RedisVL can implement their own by using a lib_name `kwarg`
on the index class like
```
SearchIndex(lib_name="langchain_v0.2.1")
```1 parent c4e3017 commit 934d269
File tree
5 files changed
+173
-65
lines changed- redisvl
- index
- redis
- tests/integration
5 files changed
+173
-65
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | 9 | | |
16 | 10 | | |
17 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
| 87 | + | |
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
| 92 | + | |
106 | 93 | | |
107 | 94 | | |
108 | 95 | | |
| |||
175 | 162 | | |
176 | 163 | | |
177 | 164 | | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
178 | 168 | | |
179 | 169 | | |
180 | 170 | | |
| |||
350 | 340 | | |
351 | 341 | | |
352 | 342 | | |
353 | | - | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
354 | 346 | | |
355 | 347 | | |
356 | | - | |
357 | | - | |
| 348 | + | |
| 349 | + | |
358 | 350 | | |
359 | 351 | | |
360 | 352 | | |
| |||
729 | 721 | | |
730 | 722 | | |
731 | 723 | | |
732 | | - | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
733 | 727 | | |
734 | 728 | | |
735 | | - | |
| 729 | + | |
736 | 730 | | |
737 | 731 | | |
738 | 732 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | | - | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| 14 | + | |
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
| 18 | + | |
16 | 19 | | |
17 | 20 | | |
18 | 21 | | |
| |||
26 | 29 | | |
27 | 30 | | |
28 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
29 | 46 | | |
30 | 47 | | |
31 | 48 | | |
| |||
108 | 125 | | |
109 | 126 | | |
110 | 127 | | |
111 | | - | |
112 | | - | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
113 | 132 | | |
114 | | - | |
| 133 | + | |
115 | 134 | | |
116 | 135 | | |
117 | | - | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
118 | 139 | | |
119 | 140 | | |
120 | 141 | | |
121 | 142 | | |
122 | | - | |
123 | | - | |
124 | | - | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
125 | 175 | | |
126 | 176 | | |
127 | | - | |
| 177 | + | |
128 | 178 | | |
129 | | - | |
| 179 | + | |
| 180 | + | |
130 | 181 | | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
131 | 199 | | |
132 | | - | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
133 | 206 | | |
134 | 207 | | |
135 | | - | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
136 | 211 | | |
137 | | - | |
138 | | - | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
139 | 215 | | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
156 | 235 | | |
157 | 236 | | |
158 | | - | |
| 237 | + | |
159 | 238 | | |
160 | 239 | | |
161 | 240 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
9 | 41 | | |
10 | 42 | | |
11 | 43 | | |
12 | 44 | | |
13 | 45 | | |
14 | 46 | | |
15 | | - | |
| 47 | + | |
16 | 48 | | |
17 | 49 | | |
18 | 50 | | |
| |||
21 | 53 | | |
22 | 54 | | |
23 | 55 | | |
24 | | - | |
| 56 | + | |
25 | 57 | | |
26 | 58 | | |
27 | 59 | | |
| |||
49 | 81 | | |
50 | 82 | | |
51 | 83 | | |
52 | | - | |
53 | | - | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
54 | 91 | | |
55 | 92 | | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
0 commit comments