MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / logNetworkInterfaceStats

Method logNetworkInterfaceStats

rest/server_context.go:1851–1861  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

1849}
1850
1851func (sc *ServerContext) logNetworkInterfaceStats(ctx context.Context) {
1852
1853 if err := sc.statsContext.addPublicNetworkInterfaceStatsForHostnamePort(sc.Config.API.PublicInterface); err != nil {
1854 base.WarnfCtx(ctx, "Error getting public network interface resource stats: %v", err)
1855 }
1856
1857 if err := sc.statsContext.addAdminNetworkInterfaceStatsForHostnamePort(sc.Config.API.AdminInterface); err != nil {
1858 base.WarnfCtx(ctx, "Error getting admin network interface resource stats: %v", err)
1859 }
1860
1861}
1862
1863// Updates stats that are more efficient to calculate at stats collection time
1864func (sc *ServerContext) updateCalculatedStats(ctx context.Context) {

Callers 1

logStatsMethod · 0.95

Tested by

no test coverage detected