Commit 65279d6
authored
Add conn.request_path to google_cloud_logger format (#34)
Adding the request_path means that this value can be indexed
and filtered upon. Although the request_url attribute includes
the request path, the hostname in the request_url may not be a static value which
can make filtering on the request_path portion slow. Including the
request path as it's own top level attribute resolves this problem.1 parent 6fc1ca9 commit 65279d6
File tree
3 files changed
+4
-0
lines changed- lib/logger_json/plug/metadata_formatters
- test/unit/logger_json
3 files changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| 35 | + | |
34 | 36 | | |
35 | 37 | | |
36 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
| |||
0 commit comments