MCPcopy Create free account
hub / github.com/google/go-cloud / appendLatency

Function appendLatency

server/requestlog/stackdriver.go:109–115  ·  view source on GitHub ↗
(b []byte, d time.Duration)

Source from the content-addressed store, hash-verified

107}
108
109func appendLatency(b []byte, d time.Duration) []byte {
110 // Parses format understood by google-fluentd (which is looser than the documented LogEntry format).
111 // See the comment at https://github.com/GoogleCloudPlatform/fluent-plugin-google-cloud/blob/e2f60cdd1d97e79ffe4e91bdbf6bd84837f27fa5/lib/fluent/plugin/out_google_cloud.rb#L1539
112 b = strconv.AppendFloat(b, d.Seconds(), 'f', 9, 64)
113 b = append(b, 's')
114 return b
115}

Callers 1

logMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected