Skip to content

Commit 0707fff

Browse files
committed
LOGC-16: Run go fmt
(cherry picked from commit 62b9461)
1 parent ead3b86 commit 0707fff

File tree

2 files changed

+11
-12
lines changed

2 files changed

+11
-12
lines changed

pkg/logcourier/logobject.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@ func (b *LogObjectBuilder) formatLogRecords(records []LogRecord) []byte {
108108
// writeLogRecord writes a single log record according to AWS format
109109
// Takes a pointer to avoid copying the ~1KB struct on each call (called for each record in the batch)
110110
// Field order must match AWS S3 Server Access Log format exactly
111-
//
112111
func (b *LogObjectBuilder) writeLogRecord(w *bytes.Buffer, rec *LogRecord) {
113112
b.writeStringPtr(w, rec.BucketOwner) // 1. Bucket Owner
114113
w.WriteByte(' ')

pkg/logcourier/metrics.go

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,37 +17,37 @@ type Metrics struct {
1717

1818
// GeneralMetrics tracks general system state and errors
1919
type GeneralMetrics struct {
20-
BatchesProcessed *prometheus.CounterVec // labels: status (success/failed_permanent/failed_transient)
21-
RecordsPermanentErrors prometheus.Counter
20+
BatchesProcessed *prometheus.CounterVec // labels: status (success/failed_permanent/failed_transient)
21+
RecordsPermanentErrors prometheus.Counter
2222
BatchProcessingDuration prometheus.Histogram
23-
CyclesTotal prometheus.Counter
24-
CycleDuration prometheus.Histogram
25-
Lag prometheus.Summary // Time from log generation to S3 upload
23+
CyclesTotal prometheus.Counter
24+
CycleDuration prometheus.Histogram
25+
Lag prometheus.Summary // Time from log generation to S3 upload
2626
}
2727

2828
// DiscoveryMetrics tracks batch discovery operations
2929
type DiscoveryMetrics struct {
3030
BatchesFound prometheus.Counter
31-
Duration prometheus.Histogram
31+
Duration prometheus.Histogram
3232
}
3333

3434
// FetchMetrics tracks log fetching from ClickHouse
3535
type FetchMetrics struct {
36-
RecordsTotal prometheus.Counter
36+
RecordsTotal prometheus.Counter
3737
RecordsPerBucket prometheus.Summary
38-
Duration prometheus.Histogram
38+
Duration prometheus.Histogram
3939
}
4040

4141
// BuildMetrics tracks log object building
4242
type BuildMetrics struct {
43-
ObjectsTotal prometheus.Counter
43+
ObjectsTotal prometheus.Counter
4444
ObjectSizeBytes prometheus.Summary
45-
Duration prometheus.Histogram
45+
Duration prometheus.Histogram
4646
}
4747

4848
// UploadMetrics tracks S3 upload operations
4949
type UploadMetrics struct {
50-
ObjectsTotal *prometheus.CounterVec // labels: status (success/failed)
50+
ObjectsTotal *prometheus.CounterVec // labels: status (success/failed)
5151
Duration *prometheus.HistogramVec // labels: status (success/failed)
5252
}
5353

0 commit comments

Comments
 (0)