Function
appendLatency
(b []byte, d time.Duration)
Source from the content-addressed store, hash-verified
| 107 | } |
| 108 | |
| 109 | func 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 | } |
Tested by
no test coverage detected