Commit Graph

9 Commits

Author SHA1 Message Date
Tigran Najaryan 5ee1fec9fe
Update to OTLP proto 0.12.0 (#4724)
- Removed all deprecated metric messages and corresponding conversion code and tests.
- Removed deprecated_code from span status and corresponding conversions and tests.
- Renamed logs field to log_records in InstrumentationLibraryLogs message.
2022-01-26 10:35:15 -08:00
Bogdan Drutu 6785e6fdd8
Fix small nits in the batchprocessor split logic (#4340)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-11-02 12:09:47 -07:00
Traian Schiau fd61bbbc9b
pdatagen - Add MoveTo method for struct types (#4240)
* [pdatagen] Add MoveTo method for struct types

* [pdatagen] Add MoveTo method for struct types - regenerate

* [batchprocessor] Split benchmarks rework

- Fix metric split benchmark
- Ignore clone counters in split benchmarks

* [batchprocessor] Use MoveTo in split

* [batchprocessor] Skip long running split benchmarks

* [batchprocessor] Improve coverage
2021-10-27 10:18:54 -07:00
José Carlos Chávez 9d3a8a4608
Adds vanity import check (#4180)
* chore: adds porto and fixes vanity imports.

* chore: fixes target overriding.

* chore: fixes install of porto.

* chore: includes porto as a tool.

* chore: upgrades porto to check internals.

* chore: rebase and update vanity import.

* chore: removes unnecessary space.

* chore: rollsback vanity import in generated files.
2021-10-12 13:47: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
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
Bogdan Drutu 1f89a5b15d
Fix batch processor logs reorder, improve performance (#3125)
Benchmarks Before:

```
goos: darwin
goarch: amd64
pkg: go.opentelemetry.io/collector/processor/batchprocessor
cpu: Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
BenchmarkSplitLogs
BenchmarkSplitLogs-16    	   16072	     76529 ns/op	  114408 B/op	     669 allocs/op
PASS
```

Benchmarks After:

```
goarch: amd64
pkg: go.opentelemetry.io/collector/processor/batchprocessor
cpu: Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
BenchmarkSplitLogs
BenchmarkSplitLogs-16    	   21795	     56491 ns/op	   88952 B/op	     556 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
BenchmarkCloneLogs
BenchmarkCloneLogs-16    	   22305	     52075 ns/op	   85976 B/op	     503 allocs/op
PASS
```

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-05-11 12:09:55 -07:00
Bogdan Drutu b8dccfc891
Add AppendEmpty and deprecate Append for slices (#2970)
This change helps with initialization:
* Lots of places where we used Resize(1). Some left to limit the PR.
* Lots of places where New followed by Append, this is equivalent with AppendEmpty.

Append is marked as deprecated, but we need to evaluate if we can change all calls to AppendEmpty,
or we need to revert the deprecation. The current goal is to remove it if possible.

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-04-20 16:35:21 -07:00
gregoryfranklin 49ddca96c1
Support max batch size for logs (#2736) 2021-03-24 12:41:34 -07:00