Bogdan Drutu
ffb332b37b
Add capabilities to consumer, remove from processor ( #2770 )
...
* Add capabilities to consumer, remove from processor
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
* Rename baseConsumer
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-05-11 16:13:47 -07:00
Bogdan Drutu
d96a7fd4b1
Use config.ComponentID in processor helper internal ( #3095 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-05-04 14:48:52 -07:00
Bogdan Drutu
665e9657ac
Use config.ID for Processors config ( #3077 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-05-03 14:46:10 -07:00
Bogdan Drutu
89ce19d611
Add RemoveIf func to all slices ( #2998 )
...
* Add Filter func to all slices
Changed probabilisticsamplerprocessor and filterprocessor to show how we can simplify code. Other places can also be improved.
Benchmarks Before:
```
goos: darwin
goarch: amd64
pkg: go.opentelemetry.io/collector/processor/filterprocessor
cpu: Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
BenchmarkStrictFilter
BenchmarkStrictFilter-16 2613 433773 ns/op 270314 B/op 7039 allocs/op
PASS
Process finished with the exit code 0
```
Benchmarks After:
```
goos: darwin
goarch: amd64
pkg: go.opentelemetry.io/collector/processor/filterprocessor
cpu: Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
BenchmarkStrictFilter
BenchmarkStrictFilter-16 42373 26623 ns/op 0 B/op 0 allocs/op
PASS
Process finished with the exit code 0
```
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
* Change Filter to RemoveIf
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-04-27 09:25:31 -07:00
Bogdan Drutu
c6c758c1cf
Fix all TraceProcessor usages, use TracesProcessor ( #2935 )
...
* Fix all TraceProcessor usages, use TracesProcessor
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
* Update changelog
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-04-14 14:04:27 -07:00
Bogdan Drutu
64fe8f0d03
Follow golang pattern and name public function types with Func suffix ( #2880 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-04-13 12:23:53 -07:00
Pablo Baeyens
08a18d5b9f
Add missing documentation ( #2837 )
...
* Add comment linter
For now I am excluding
- Internal packages
- Testbed packages
- Constant blocks (since the type docs is usually enough)
* Document consumer folder
* Document processor folder
* Document component folder
* Document config folder
* Document service folder
* Add nosec directive for testbed
* Document testutil folder
* Document receiver folder
* Document exporter folder
* Document cmd/schemagen folder
* Document translator folder
* Document cmd/mdatagen
* Document obsreport folder
* Remove outdated package config comment
* Update .golangci.yml
* Update .golangci.yml
Co-authored-by: Bogdan Drutu <lazy@splunk.com>
2021-03-31 16:38:40 -07:00
Bogdan Drutu
e7c74eb2fd
Move configmodels to config ( #2808 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-03-26 12:14:35 -07:00
Bogdan Drutu
4ae0fc1149
Use Option pattern for componenthelper ( #2778 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-03-24 13:43:00 -07:00
Bogdan Drutu
0c6757ec71
Rename [Traces|Metrics|Logs]Consumer to [Traces|Metrics|Logs] ( #2761 )
...
* Rename [Traces|Metrics|Logs]Consumer to [Traces|Metrics|Logs]
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
* Update internal/testcomponents/example_exporter.go
Co-authored-by: Tigran Najaryan <4194920+tigrannajaryan@users.noreply.github.com>
Co-authored-by: Tigran Najaryan <4194920+tigrannajaryan@users.noreply.github.com>
2021-03-23 08:04:44 -07:00
Bogdan Drutu
45ea954311
Add more trace annotations, so zpages are more useful to determine failures ( #2206 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-11-23 14:23:24 -08:00
Bogdan Drutu
8ceddba7ea
Reduce duplicate code in components helper ( #2186 )
...
Add componenthelper package to help building components like Processors, Exporters.
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-11-20 07:17:46 -08:00
Bogdan Drutu
8e8cb7078a
Remove usage and the global funcs in obsreport ( #2161 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-11-16 12:44:09 -08:00
Bogdan Drutu
a3fa0a9166
Rename processor component.TraceProcessor to component.TracesProcessor, and equivalent Create method feature request ( #2026 )
...
Fixes #1975
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-10-28 18:11:25 -04:00
Bogdan Drutu
99cb5b244a
Rename consumer.TraceConsumer to consumer.TracesConsumer ( #1981 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-10-20 10:56:30 -07:00
Jay Camp
1e65674799
Update copyright ( #1597 )
...
* Update copyright
* rebase
2020-08-19 18:25:44 -07:00
Annie Fu
052b36eac7
If filterprocessor filters all data, stop further processing ( #1500 )
2020-08-13 11:30:16 -07:00
Ben Keith
4896d31e1e
Make Logs Type Non-internal ( #1456 )
...
This allows Logs to be used in the contrib repo.
Most of the references were fixed by sed + 'make fmt'.
2020-07-29 16:58:32 -04:00
Bogdan Drutu
2b37a30aa7
Use Logs as prefix for all components instead of Log ( #1416 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-07-22 10:48:55 -07:00
Bogdan Drutu
afc47961e0
Add processor helper. In the future add metrics and tracing ( #1359 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-07-15 12:26:39 -07:00