alrex
0163db7aca
update initSumIntMetric and initGaugeIntMetric ( #3718 )
2021-07-26 16:27:07 -07:00
alrex
f46871afda
remove IntHistogram ( #3676 )
...
* remove IntHistogram
* fix test
* rename histogram in golden dataset
2021-07-20 14:58:59 -07:00
alrex
c6f9f29fca
Rename DoubleDataPoint to NumberDataPoint ( #3633 )
2021-07-15 19:02:36 -07:00
Anthony Mirabella
9e8bded5b4
Deprecate Resize() from pdata slice APIs ( #3573 )
...
* Remove Resize() from pointer slice API
Signed-off-by: Anthony J Mirabella <a9@aneurysm9.com>
* model/pdata: refactor value slice interfaces
* Removed Resize()
* Added EnsureCapacity() and AppendEmptyN()
Signed-off-by: Anthony J Mirabella <a9@aneurysm9.com>
* -Fix function signature in cpu_scraper_linux.go
Signed-off-by: Anthony J Mirabella <a9@aneurysm9.com>
* Fix remaining Resize() calls
Signed-off-by: Anthony J Mirabella <a9@aneurysm9.com>
* Fix OS-specific processes scraper
Signed-off-by: Anthony J Mirabella <a9@aneurysm9.com>
* Remove tests for equality of value slices that aren't comparable
Signed-off-by: Anthony J Mirabella <a9@aneurysm9.com>
* Remove AppendEmptyN from pdata slice APIs
Signed-off-by: Anthony J Mirabella <a9@aneurysm9.com>
* batchprocessor: improve splitMetric() to avoid copying entire metric unless necessary
Signed-off-by: Anthony J Mirabella <a9@aneurysm9.com>
* model/pdata: restore Resize() for slice types, mark as deprecated
Signed-off-by: Anthony J Mirabella <a9@aneurysm9.com>
* Update metrics_test.go
* Update metrics_test.go
Co-authored-by: Bogdan Drutu <bogdandrutu@gmail.com>
Co-authored-by: Bogdan Drutu <lazy@splunk.com>
2021-07-12 19:01:24 -07:00
alrex
f9dacb8402
rename DoubleGauge -> Gauge ( #3599 )
2021-07-12 16:59:08 -07:00
alrex
aa60edff16
rename DoubleSum -> Sum ( #3583 )
...
* rename DoubleSum -> Sum
* update changelog
* revert pict changes
2021-07-12 15:21:51 -07:00
Bogdan Drutu
d1fced9688
Refactor MetricAndDataPointCount to DataPointCount ( #3547 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-07-01 13:43:31 -07:00
Bogdan Drutu
c63d0c68cd
Move pdata in the new package ( #3483 )
...
The new module go.opentelemetry.io/collector/model will be created later when the internal data will
also be moved.
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-06-25 01:17:31 +03:00
kisieland
6d44f0d303
Make the batch processor limit data points rather than metrics. ( #3141 )
...
**Link to tracking Issue:** #2754
This change introduces a BenchmarkBatchMetricProcessor that stress tests batching logic.
Results before:
`BenchmarkBatchMetricProcessor-12 20000 80614 ns/op`
Results after the change:
`BenchmarkBatchMetricProcessor-12 20000 96184 ns/op`
2021-06-02 10:52:24 -04:00
Bogdan Drutu
7b39a894e1
Fix batch processor traces reorder, improve performance ( #3107 )
...
Benchmarks Before:
```
goos: darwin
goarch: amd64
pkg: go.opentelemetry.io/collector/processor/batchprocessor
cpu: Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
BenchmarkSplitTraces
BenchmarkSplitTraces-16 8277 135600 ns/op 222440 B/op 1725 allocs/op
PASS
```
Benchmarks After:
```
goos: darwin
goarch: amd64
pkg: go.opentelemetry.io/collector/processor/batchprocessor
cpu: Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
BenchmarkSplitTraces
BenchmarkSplitTraces-16 9896 108060 ns/op 172409 B/op 1372 allocs/op
PASS
```
Benchmarks Reference Clone:
```
goos: darwin
goarch: amd64
pkg: go.opentelemetry.io/collector/processor/batchprocessor
cpu: Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
BenchmarkCloneSpans
BenchmarkCloneSpans-16 12393 97528 ns/op 167896 B/op 1303 allocs/op
PASS
```
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-05-05 15:19:29 -07:00
Bogdan Drutu
deceea9d54
Fix batch processor metrics reorder, improve performance ( #3034 )
...
Benchmarks Before:
```
goos: darwin
goarch: amd64
pkg: go.opentelemetry.io/collector/processor/batchprocessor
cpu: Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
BenchmarkSplitMetrics
BenchmarkSplitMetrics-16 6660 170653 ns/op 182889 B/op 3309 allocs/op
PASS
Process finished with the exit code 0
```
Benchmarks After:
```
goos: darwin
goarch: amd64
pkg: go.opentelemetry.io/collector/processor/batchprocessor
cpu: Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
BenchmarkSplitMetrics
BenchmarkSplitMetrics-16 7858 134259 ns/op 141881 B/op 2596 allocs/op
PASS
Process finished with the exit code 0
```
Benchmarks Reference Clone:
```
goos: darwin
goarch: amd64
pkg: go.opentelemetry.io/collector/processor/batchprocessor
cpu: Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
BenchmarkCloneMetrics
BenchmarkCloneMetrics-16 8726 127948 ns/op 137816 B/op 2503 allocs/op
PASS
Process finished with the exit code 0
```
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-05-05 13:55:36 -07:00
Daniel Dyla
e479242ac7
Support max batch size for metrics ( #2422 )
...
* Support max batch size for metrics
* send batch max supported by trace and metric
* Avoid extra allocations
2021-02-09 12:28:23 -08:00