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

Fix (possible) bug where cross-namespace auto-instrumentation configs are not always supported #2160

Closed
jvoravong opened this issue Sep 25, 2023 · 4 comments
Labels
area:auto-instrumentation Issues for auto-instrumentation

Comments

@jvoravong
Copy link
Contributor

Description:

There seems to be an inconsistency when deploying a target application, the Instrumentation opentelemetry.io/v1alpha1, and the Operator across different namespaces: auto-instrumentation might fail in some configurations. While the current documentation indicates support for such deployments, we need to clearly define which scenarios are supported and rectify any discrepancies.

For clarity, I've expanded and provided some e2e tests in a fork:

  • Scenario 1 - Success✅
    • Namespace A:
      • Operator+Collector
      • Target Application
    • Namespace B:
      • Instrumentation
  • Scenario 2 - Fail❌
    • Namespace A:
      • Operator+Collector
    • Namespace B:
      • Target Application
      • Instrumentation
  • Scenario 3 - Fail❌
    • Namespace A:
      • Operator+Collector
      • Instrumentation
    • Namespace B:
      • Target Application

AC:
Instrumentation configurations from any namespace should seamlessly apply to a pod, irrespective of the namespace housing the target, Instrumentation opentelemetry.io/v1alpha1, and Operator.

Related:

Lastly, I'd like to offer my assistance in addressing the failing scenarios with code changes or facilitating any related discussions

@TylerHelmuth
Copy link
Member

@jvoravong if you perform these test cases manually do they fail?

@TylerHelmuth TylerHelmuth added the area:auto-instrumentation Issues for auto-instrumentation label Sep 25, 2023
@jvoravong
Copy link
Contributor Author

jvoravong commented Sep 25, 2023

These failures occur with manual testing as well. From an initial glance, it looks like the "namespace" value isn't handled properly when looking for the Instrumentation instance in the failing cases.

@TylerHelmuth
Copy link
Member

@jvoravong I tested both scenario 2 and 3 locally and got success. Can you provide more details on the environment/setup of your failed scenarios?

@jvoravong
Copy link
Contributor Author

Hmmm. I actually can't reproduce this issue in recent versions of the Operator. Original I discovered this issue 6 months ago and it was reproducible. Closing this issue as fixed. Thanks @TylerHelmuth.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:auto-instrumentation Issues for auto-instrumentation
Projects
None yet
Development

No branches or pull requests

2 participants