Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add change handler to register callbacks #1292

Conversation

frzifus
Copy link
Member

@frzifus frzifus commented Nov 30, 2022

Description: #1206 (comment)

@frzifus frzifus force-pushed the add_change_handler_to_register_callbacks branch 2 times, most recently from 3031879 to 444f330 Compare November 30, 2022 15:26
@frzifus frzifus marked this pull request as ready for review November 30, 2022 15:28
@frzifus frzifus requested a review from a team November 30, 2022 15:28
Copy link
Member

@kevinearls kevinearls left a comment

Choose a reason for hiding this comment

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

LGTM except for some minor issues on comments

internal/config/change_handler.go Outdated Show resolved Hide resolved
internal/config/change_handler.go Outdated Show resolved Hide resolved
internal/config/main.go Outdated Show resolved Hide resolved
@frzifus frzifus force-pushed the add_change_handler_to_register_callbacks branch from 444f330 to 1215eb8 Compare November 30, 2022 15:47
@frzifus frzifus force-pushed the add_change_handler_to_register_callbacks branch from 1215eb8 to eaff211 Compare November 30, 2022 17:43
internal/config/change_handler.go Outdated Show resolved Hide resolved
internal/config/options.go Outdated Show resolved Hide resolved
internal/config/main.go Outdated Show resolved Hide resolved
Signed-off-by: Benedikt Bongartz <bongartz@klimlive.de>
Signed-off-by: Benedikt Bongartz <bongartz@klimlive.de>
@frzifus frzifus force-pushed the add_change_handler_to_register_callbacks branch from 88ae5ff to c96265c Compare December 1, 2022 16:52
Signed-off-by: Benedikt Bongartz <bongartz@klimlive.de>
@frzifus frzifus force-pushed the add_change_handler_to_register_callbacks branch from c96265c to 6a0e657 Compare December 1, 2022 16:54
@pavolloffay pavolloffay merged commit eb51a09 into open-telemetry:main Dec 1, 2022
@frzifus frzifus deleted the add_change_handler_to_register_callbacks branch December 1, 2022 17:29
ihalaij1 pushed a commit to ihalaij1/opentelemetry-operator that referenced this pull request Dec 8, 2022
* config: move onChange callback list methods into a thread-safe wrapper

Signed-off-by: Benedikt Bongartz <bongartz@klimlive.de>

* config: keep change handler private

Signed-off-by: Benedikt Bongartz <bongartz@klimlive.de>

* follow naming recommendations

Signed-off-by: Benedikt Bongartz <bongartz@klimlive.de>

Signed-off-by: Benedikt Bongartz <bongartz@klimlive.de>
ItielOlenick pushed a commit to ItielOlenick/opentelemetry-operator that referenced this pull request May 1, 2024
* config: move onChange callback list methods into a thread-safe wrapper

Signed-off-by: Benedikt Bongartz <bongartz@klimlive.de>

* config: keep change handler private

Signed-off-by: Benedikt Bongartz <bongartz@klimlive.de>

* follow naming recommendations

Signed-off-by: Benedikt Bongartz <bongartz@klimlive.de>

Signed-off-by: Benedikt Bongartz <bongartz@klimlive.de>
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.

4 participants