<p>I want to use istio with existing jaeger tracing system in K8S, I began with installing jaeger system following <a href="https://github.com/jaegertracing/jaeger-kubernetes" rel="noreferrer">the official link</a> with cassandra as backend storage. Then installed istio by <a href="https://istio.io/docs/setup/kubernetes/helm-install/" rel="noreferrer">the helm way</a>, but with only some selected components enabled: </p>

<pre><code>helm upgrade istio -i install/kubernetes/helm/istio --namespace istio-system \   
--set security.enabled=true \   
--set ingress.enabled=false \   
--set gateways.istio-ingressgateway.enabled=true \   
--set gateways.istio-egressgateway.enabled=false \   
--set galley.enabled=false \   
--set sidecarInjectorWebhook.enabled=true \  
--set mixer.enabled=false \   
--set prometheus.enabled=false \
--set global.proxy.envoyStatsd.enabled=false \
--set pilot.sidecar=true \ 
--set tracing.enabled=false
</code></pre>

<p>Jaeger and istio are installed inside the same namespace <code>istio-sytem</code>, after all done, all pods inside it looks like this:</p>

<pre><code>kubectl -n istio-system get pods                           
NAME            READY     STATUS    RESTARTS   AGE 
istio-citadel-5c9544c886-gr4db      1/1       Running   0          46m 
istio-ingressgateway-8488676c6b-zq2dz     1/1       Running   0        51m 
istio-pilot-987746df9-gwzxw               2/2       Running   1    51m 
istio-sidecar-injector-6bd4d9487c-q9zvk   1/1       Running   0    45m 
jaeger-collector-5cb88d449f-rrd7b         1/1       Running   0    59m 
jaeger-query-5b5948f586-gxtk7             1/1       Running   0    59m
</code></pre>

<p>Then I followed <a href="https://istio.io/docs/examples/bookinfo/" rel="noreferrer">the link</a> to deploy the bookinfo sample into another namespace <code>istio-play</code>, which has label <code>istio-injection=enabled</code>, but no matter how I flush the <code>productpage</code> page, there's no tracing data be filled into jaeger.</p>

<p>I guess maybe tracing spans are sent to jaeger by mixer, like the way istio do all other telementry stuff, so I <code>-set mixer.enabled=true</code>, but unfortunately only some services like <code>istio-mixer</code> or <code>istio-telementry</code> are displayed. Finally I cleaned up all the above installation and followed <a href="https://istio.io/docs/tasks/telemetry/distributed-tracing/" rel="noreferrer">this task</a> step by step, but the tracing data of bookinfo app are still not there.</p>

<p>My questions is: How indeed istio send tracing data to jaeger? Does sidecar proxy send it directly to jaeger-collector(<code>zipkin.istio-system:9411</code>) like <a href="https://www.envoyproxy.io/docs/envoy/latest/start/sandboxes/jaeger_tracing" rel="noreferrer">how envoy does</a>, or the data flows like this: <code>sidecar-proxy -&gt; mixer -&gt; jaeger-collector</code>? And how could I debug how the data flow between all kinds of components inside the istio mesh? </p>

<p>Thanks for any help and info :-)</p>

<hr>

<p><strong>Update</strong>: I tried again by installing istio without helm: <code>kubectl -n istio-system apply -f install/kubernetes/istio-demo.yaml</code>, this time everything works just fine, there must be something different between <code>kubectl way</code> and <code>helm way</code>. </p>

shizhz
<p>Based on my experience and reading online, I found this interesting line in Istio <a href="https://istio.io/help/faq/mixer/" rel="nofollow noreferrer">mixer faq</a></p>

<blockquote>
  <p>Mixer trace generation is controlled by command-line flags: trace_zipkin_url, trace_jaeger_url, and trace_log_spans. If any of those flag values are set, trace data will be written directly to those locations. If no tracing options are provided, Mixer will not generate any application-level trace information.</p>
</blockquote>

<p>Also, if you go deep into mixer <a href="https://github.com/istio/istio/blob/d6c3ebcaaffd7e45772beefeeb71708ef1588cb4/install/kubernetes/helm/subcharts/mixer/templates/deployment.yaml" rel="nofollow noreferrer">helm chart</a>, you will find traces of Zipkin and Jaeger signifying that it’s mixer that is passing trace info to Jaeger.</p>

<p>I also got confused which reading this line in one of the articles </p>

<blockquote>
  <p>Istio injects a sidecar proxy (Envoy) in the pod in which your application container is running. This sidecar proxy transparently intercepts (iptables magic) all network traffic going in and out of your application. Because of this interception, the sidecar proxy is in a unique position to automatically trace all network requests (HTTP/1.1, HTTP/2.0 &amp; gRPC).</p>
</blockquote>

<p>On Istio mixer documentation, The Envoy sidecar logically calls Mixer before each request to perform precondition checks, and after each request to report telemetry. The sidecar has local caching such that a large percentage of precondition checks can be performed from cache. Additionally, the sidecar buffers outgoing telemetry such that it only calls Mixer infrequently.</p>

<p><strong>Update:</strong> You can enable tracing to understand what happens to a request in Istio and also the role of mixer and envoy. Read more information <a href="https://istio.io/help/faq/telemetry/#life-of-a-request" rel="nofollow noreferrer">here</a></p>
