Commit Graph

10 Commits

Author SHA1 Message Date
Tigran Najaryan 18fb01178b
Remove usage of LogRecord.Name field (#4804)
The LogRecord Name field [is removed](https://github.com/open-telemetry/opentelemetry-specification/pull/2271) from the specification and is [going to be removed](https://github.com/open-telemetry/opentelemetry-proto/pull/357) from the OTLP.
2022-02-08 08:56:16 -08:00
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 87405ddaa4
Small cleanup for batchprocessor split logic (#4284)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-10-28 08:49:51 -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
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 2d48457b64
Rename [Trace|Log]Data to Traces|Logs in internal package testdata (#3205)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-05-17 15:01:33 -07: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 13e45667cf
Cleanup usages of Resize(1), after PR #2970 (#2971)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-04-20 18:04:31 -07:00
gregoryfranklin 49ddca96c1
Support max batch size for logs (#2736) 2021-03-24 12:41:34 -07:00