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

instrumentor: Combine startlangdetection and deleteinstrumentationconfig controllers into one sourceinstrumentation controller #2506

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

damemi
Copy link
Contributor

@damemi damemi commented Feb 26, 2025

Having 2 separate controllers to handle enabling and disabling instrumentation has led to race conditions and weird, hard to debug edge cases. Generally, having multiple controllers reconcile the same object can lead to these issues.

This combines them into one controller that receives all relevant events for enabling and disabling instrumentation. Based on the state of the relevant objects (essentially whether they are backed by a Source CR), the code branches within this controller to reconcile the appropriate action.

This also consolidates the separate finalizers that were spread between the 2 controllers into a single Source finalizer, reducing the risk of deadlock.

@damemi damemi force-pushed the instrumentor-controllers branch 6 times, most recently from c2c91c3 to 16ad956 Compare February 26, 2025 19:01
@damemi damemi force-pushed the instrumentor-controllers branch from fdea8b8 to 5318029 Compare February 26, 2025 20:02
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.

1 participant