MCPcopy Index your code
hub / github.com/tailscale/tailscale / serveDeviceDetailsClick

Method serveDeviceDetailsClick

client/web/web.go:1268–1272  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

1266//
1267// Other metrics should not be logged in this way without a good reason.
1268func (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//

Callers 2

serveLoginAPIMethod · 0.95
serveAPIMethod · 0.95

Calls 3

WriteStringMethod · 0.80
IncrementCounterMethod · 0.65
ContextMethod · 0.65

Tested by

no test coverage detected