Commit 30764fb
committed
Centralize incoming request logging in monitoring
Move the log_incoming_request helper from proxy/service.rs into monitoring/service.rs and call it at the start of NodeService::handle_request. Remove the duplicate implementation and the call from ProxyRequestService. Also add user_agent to an existing log entry in monitoring/service.rs. This centralizes request logging (including RPC method details for JsonRpc requests) and removes redundant code in the proxy service.1 parent c66dbf7 commit 30764fb
2 files changed
Lines changed: 31 additions & 27 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| 104 | + | |
| 105 | + | |
104 | 106 | | |
105 | 107 | | |
106 | 108 | | |
| |||
180 | 182 | | |
181 | 183 | | |
182 | 184 | | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
183 | 213 | | |
184 | 214 | | |
185 | 215 | | |
| |||
207 | 237 | | |
208 | 238 | | |
209 | 239 | | |
| 240 | + | |
210 | 241 | | |
211 | 242 | | |
212 | 243 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | 100 | | |
126 | 101 | | |
127 | 102 | | |
| |||
143 | 118 | | |
144 | 119 | | |
145 | 120 | | |
146 | | - | |
147 | | - | |
148 | 121 | | |
149 | 122 | | |
150 | 123 | | |
| |||
0 commit comments