serveDeviceDetailsClick increments the web_client_device_details_click metric by one. Metric logging from the frontend typically is proxied to the localapi. This event has been special cased as access to the localapi is gated upon having a valid session which is not always the case when we want to
(w http.ResponseWriter, r *http.Request)
| 1266 | // |
| 1267 | // Other metrics should not be logged in this way without a good reason. |
| 1268 | func (s *Server) serveDeviceDetailsClick(w http.ResponseWriter, r *http.Request) { |
| 1269 | s.lc.IncrementCounter(r.Context(), "web_client_device_details_click", 1) |
| 1270 | |
| 1271 | io.WriteString(w, "{}") |
| 1272 | } |
| 1273 | |
| 1274 | // proxyRequestToLocalAPI proxies the web API request to the localapi. |
| 1275 | // |
no test coverage detected