-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Configurable tracing service name #12371
Configurable tracing service name #12371
Conversation
Hi @GrigoriyMikhalkin. Thanks for taking the time to submit this and sorry for the delay and getting you a review. I'm curious about a slightly modified approach that might lessen the change required. Specifically, I don't think we should anything about tracing should be part of the linkerd-control-plane chart if we can avoid it. Tell me if you think this could work: jaeger/injector/mutator/patch.go includes tracing-specific proxy configuration, so we should aim to instrument this here. I don't think that we need a new helm value to do this... instead we can use the downward API to reference a dedicated annotation that controls this parameter to set an environment variable. (I'd suggest something like jaeger.linkerd.io/proxy-service-name.) Then, the proxy can use that value as override if it is set and not empty... |
1806eff
to
398e29c
Compare
Hi @olix0r! I agree that use of downward API allows more elegant solution. Updated the PR. One thing to note is, proxy now relies on annotation named |
d13419e
to
eeca7dd
Compare
eeca7dd
to
9a9080b
Compare
Hi @olix0r! I updated this PR to be up-to-date. |
aa9a9df
to
3d11a83
Compare
Signed-off-by: GrigoriyMikhalkin <[email protected]>
Signed-off-by: GrigoriyMikhalkin <[email protected]>
Signed-off-by: GrigoriyMikhalkin <[email protected]>
Signed-off-by: GrigoriyMikhalkin <[email protected]>
Signed-off-by: GrigoriyMikhalkin <[email protected]>
3d11a83
to
771d290
Compare
Similar in concept to linkerd#12371, except the configuration lives entirely within the tracing injector config instead of going through the control plane. Fixes linkerd#11157 Signed-off-by: Scott Fleener <[email protected]>
Similar in concept to linkerd#12371, except the configuration lives entirely within the tracing injector config instead of going through the control plane. Fixes linkerd#11157 Signed-off-by: Scott Fleener <[email protected]>
Similar in concept to linkerd#12371, except the configuration lives entirely within the tracing injector config instead of going through the control plane. Fixes linkerd#11157 Signed-off-by: Scott Fleener <[email protected]>
Companion to linkerd/linkerd2-proxy#3245, exposes the configuration for the tracing service name in the proxy to the general linkerd config. Similar in concept to linkerd#12371, except the configuration lives entirely within the tracing injector config instead of going through the control plane. Fixes linkerd#11157 Signed-off-by: Scott Fleener <[email protected]>
Companion to linkerd/linkerd2-proxy#3245, exposes the configuration for the tracing service name in the proxy to the general linkerd config. Similar in concept to linkerd#12371, except the configuration lives entirely within the tracing injector config instead of going through the control plane. Fixes linkerd#11157 Signed-off-by: Scott Fleener <[email protected]>
Companion to linkerd/linkerd2-proxy#3245, exposes the configuration for the tracing service name in the proxy to the general linkerd config. Similar in concept to linkerd#12371, except the configuration lives entirely within the tracing injector config instead of going through the control plane. Fixes linkerd#11157 Signed-off-by: Scott Fleener <[email protected]>
Companion to linkerd/linkerd2-proxy#3245, exposes the configuration for the tracing service name in the proxy to the general linkerd config. Similar in concept to linkerd#12371, except the configuration lives entirely within the tracing injector config instead of going through the control plane. Fixes linkerd#11157 Signed-off-by: Scott Fleener <[email protected]>
Companion to linkerd/linkerd2-proxy#3245, exposes the configuration for the tracing service name in the proxy to the general linkerd config. Similar in concept to linkerd#12371, except the configuration lives entirely within the tracing injector config instead of going through the control plane. Fixes linkerd#11157 Signed-off-by: Scott Fleener <[email protected]>
Companion to linkerd/linkerd2-proxy#3245, exposes the configuration for the tracing service name in the proxy to the general linkerd config. Similar in concept to #12371, except the configuration lives entirely within the tracing injector config instead of going through the control plane. Fixes #11157 Signed-off-by: Scott Fleener <[email protected]>
This PR can also be closed (see linkerd/linkerd2-proxy#2856). |
Part of solution for #11157
linkerd2-proxy part: linkerd/linkerd2-proxy#2856
Introduces new annotation
config.linkerd.io/tracing-service-name
which allows to set custom tracing service name for proxy.P.S. Another potential solution would be to use template instead of fixed name, which would allow to set annotation once for namespace, for example. But it has it's own drawback, that in this case we would have to use Pod name or something similar in this template. So, i think the solution with fixed service name annotation is the best.