Alex Boten
062d0a7ffc
[chore] remove unnecessary underscores ( #9580 )
...
As per feedback from my previous PR
Signed-off-by: Alex Boten <aboten@lightstep.com>
2024-02-13 13:34:53 -08:00
Alex Boten
80d704deb4
[chore] use license shortform ( #7694 )
...
* [chore] use license shortform
To remain consistent w/ contrib repo, see https://github.com/open-telemetry/opentelemetry-collector-contrib/pull/22052
Signed-off-by: Alex Boten <aboten@lightstep.com>
* make goporto
Signed-off-by: Alex Boten <aboten@lightstep.com>
---------
Signed-off-by: Alex Boten <aboten@lightstep.com>
2023-05-18 13:11:17 -07:00
Dmitrii Anoshin
7740c7b387
Remove usages of deprecated pdata Clone methods ( #6170 )
2022-09-28 18:25:22 -07:00
Bogdan Drutu
1a4361c49a
Remove unnecessary and unused testdata ( #5599 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2022-06-27 09:43:33 -07:00
Dmitrii Anoshin
734e25e8de
Split `model` by signal type and move it to the new `pdata` module ( #5168 )
...
Split all `pdata` related code by type and move it from `model` to the new module `pdata`.
- `model/pdata` and `model/otlp` are moved to `pdata/plog`, `pdata/pmetric` and `pdata/ptrace`.
- `model/otlpgrpc` is moved to `pdata/plogotlp`, `pdata/pmetricotlp` and `pdata/ptraceotlp`.
Now all the API in `model` except for `model/semconv` is deprecated.
2022-04-11 16:00:26 -07:00
Alex Boten
1d5fdd1c1f
Deprecation of pdata methods following OTLP v0.15.0 ( #5076 )
...
* Deprecation of pdata methods following OTLP v0.15.0
Adding deprecation methods for the following pdata methods:
- InstrumentationLibrary is now Scope
- InstrumentationLibrarySpans is now ScopeSpans
- InstrumentationLibraryLogs is now ScopeLogs
- InstrumentationLibraryMetrics is now ScopeMetrics
* update changelog
* add deprecated method on resource spans/metrics/logs
* add InstrumentationLibrary deprecation method
2022-03-28 00:32:48 -07:00
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