Skip to content

Use Func pattern in processorhelper, consistent with others#3570

Merged
tigrannajaryan merged 1 commit intoopen-telemetry:mainfrom
bogdandrutu:processorhelperfunc
Jul 13, 2021
Merged

Use Func pattern in processorhelper, consistent with others#3570
tigrannajaryan merged 1 commit intoopen-telemetry:mainfrom
bogdandrutu:processorhelperfunc

Conversation

@bogdandrutu
Copy link
Copy Markdown
Member

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

@bogdandrutu bogdandrutu requested review from a team and dmitryax July 6, 2021 00:49
Copy link
Copy Markdown
Member

@tigrannajaryan tigrannajaryan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if the opposite change could be preferable, i.e. make all helpers use an interface instead of a func. Interface approach is more future-proof, you can extend the interface, i.e. add optional requirements and if the processor supports it the helper can use it.
Not a strong opinion but maybe worth considering.

@bogdandrutu
Copy link
Copy Markdown
Member Author

@tigrannajaryan the interface will be implemented by users (devs of processors), so we cannot extend that as per semver.

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
@bogdandrutu bogdandrutu force-pushed the processorhelperfunc branch from 1d76d1b to a73b405 Compare July 12, 2021 16:49
@tigrannajaryan tigrannajaryan merged commit 28091a2 into open-telemetry:main Jul 13, 2021
@bogdandrutu bogdandrutu deleted the processorhelperfunc branch July 25, 2022 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants