mirror of
https://github.com/hanzoai/otel-collector.git
synced 2026-11-03 02:20:04 +00:00
- Fix 'Hanzo O11y' (space) → 'HanzoO11y' in Go struct/func names - Package o11yclickhousemetrics → o11ydatastoremetrics (matches dir) - Package o11yclickhousemeter → o11ydatastoremeter (matches dir) - Import paths aligned with actual directory structure - Component type names kept as signozclickhousemetrics for config compat
16 lines
233 B
Go
16 lines
233 B
Go
package o11ydatastoremeter
|
|
|
|
type batch struct {
|
|
samples []*sample
|
|
}
|
|
|
|
func newBatch() *batch {
|
|
return &batch{
|
|
samples: make([]*sample, 0),
|
|
}
|
|
}
|
|
|
|
func (b *batch) addSample(sample *sample) {
|
|
b.samples = append(b.samples, sample)
|
|
}
|