Commit Graph

10 Commits

Author SHA1 Message Date
Patryk Matyjasek 017aa1dad7
Standarize Settings, Params and Parameters in Processors (#3181)
* Replace ProcessorCreateParams with ProcessorCreateSettings.
Replace all dependencies in Processors.

Signed-off-by: Patryk Matyjasek <pmatyjasek@sumologic.com>

* Update changelog

Signed-off-by: Patryk Matyjasek <pmatyjasek@sumologic.com>

# Conflicts:
#	CHANGELOG.md

# Conflicts:
#	CHANGELOG.md

Co-authored-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-06-02 06:49:04 -07: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 8fed8a6070
Remove testdata GetEmpty for all signals (#3202)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-05-17 11:58:50 -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
Bogdan Drutu 53832b5246
Add convenience interface in consumertest that implements all consumers (#2878)
* Add convenience interface in consumertest that implements all consumers

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>

* Add changelog entry, fix license

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-04-02 15:00:23 -07:00
Bogdan Drutu f4f68db25d
Expose non-nullable elements from slices of pointers (#2200)
Currently for slices of pointers, pdata exposes elements that are pointers to the pointer in the slice (double pointers in the internal implementation). Because of this users have to deal with possible nil values, have to initialize elements (in some cases) etc, but in reality the elements in the slice cannot be nil, so this just adds extra unnecessary complexity. This is possible because:

* Gogo proto (and protobuf) will not unmarshal any nil element in a slice;
* Our APIs to add elements/remove elements from the slice will guarantee that we never have a nil element in the slice between [0, len-1];

This is an important change because will allow us to change the internal representation (use slice of pointers or non-pointers) without affecting the public API.

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-12-01 10:50:19 -08:00
Bogdan Drutu cb6014387d
Move testdata up one level, no point in being data/testdata (#2198)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-11-24 11:53:36 -08:00
Bogdan Drutu c6b8f28c60
Add ability to generate non nullable messages, convert Resource to test the change (#2005)
* Add ability to generate non nullable messages, convert Resource to test the change

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>

* Remove lint errors

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>

* Fix more lint errors

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>

* Remove unused funcs and vars

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>

* Remove IsNil from value structs, update accessor message

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-11-06 10:36:57 -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
Gregor Zeitlinger 3a185c5272
Log Support in Attribute Processor (2/2) (#1934)
This complements the trace span support already present.

It shares the same config struct to maintain backwards-compatibility with spans in the cleanest way possible.
2020-10-26 16:02:42 -04:00