Open angelbarrera92 opened 11 months ago
This issue is currently awaiting triage.
If Ingress contributors determines this is a relevant issue, they will accept it by applying the triage/accepted
label and provide further guidance.
The triage/accepted
label can be added by org members by writing /triage accepted
in a comment.
Objective
I'd like to propose an enhancement for the current functionality of the multi-tenant ingress controller related to tracing capabilities. Presently, the controller allows setting a singular
collector-host
andcollector-port
, applying this configuration universally to all traces. However, I'm looking to expand this capability to enable distinct tracing behaviors based on specific annotations at the ingress level.Current Configuration
The current setup confines the configuration of
collector-host
andcollector-port
solely to the controller level. The documentation suggests that the OTLP collector is defined at the controller level, affecting all ingresses uniformly.Reference: Ingress Nginx - OpenTelemetry Addon
Limited Ingress-Level Configuration
Upon inspecting the codebase, it appears that the only adjustable parameters at the ingress level are:
enable-opentelemetry
opentelemetry-trust-incoming-span
opentelemetry-operation-name
Reference: Ingress Nginx - OpenTelemetry Annotations
Proposed Enhancement
In multi-tenant environments where ingress resources are often shared among tenants, it would be highly beneficial to allow finer control over tracing behavior at the ingress level. My suggestion is to introduce a mechanism where the collector information (specifically
host
andport
) can be configured at the ingress level.The proposed behavior could be:
host
orport
, it will default to the settings configured at the controllerhost
orport
is specified at the ingress level, it will take precedence over the corresponding controller-level configuration.Potential Implementation
Implementing this enhancement would enable more granular control over tracing behavior, especially in scenarios where different tenants necessitate distinct tracing configurations within shared ingress resources.
This feature would significantly contribute to the flexibility and scalability of the multi-tenant ingress controller, ensuring more tailored and efficient tracing setups.
Your consideration of this enhancement is highly appreciated!