<p>I want to add a custom tag in Jaeger span, I tried to install Istio on my Kubernetes cluster with this command:</p>
<pre><code>istioctl install --set profile=demo --set meshConfig.accessLogFile=/dev/stdout --set meshConfig.outboundTrafficPolicy.mode=REGISTRY_ONLY -f .\tracing.yaml -y
</code></pre>
<p>and this is <code>tracing.yaml</code>:</p>
<pre><code>apiVersion: install.istio.io/v1alpha1
kind: IstioOperator
spec:
  meshConfig:
    enableTracing: true
    defaultConfig:
      tracing:
        sampling: 100.0
        custom_tags:
          my_tag_header:
            header:
              name: test
              defaultValue: test
</code></pre>
<p>but there is no <code>test</code> tag in spans:
<a href="https://i.stack.imgur.com/LBbFa.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LBbFa.png" alt="enter image description here" /></a>
What should I do?</p>

<p>When using Istio operator you have to initialize it first with</p>
<pre class="lang-text prettyprint-override"><code>istioctl operator init
</code></pre>
<p>By default Istio operator installs and watches only <code>istio-operator</code> namespace. If you want to specify another namespaces for it to watch (for example <em>default</em>), add <code>--watchedNamespaces</code> argument</p>
<pre class="lang-text prettyprint-override"><code>istioctl operator init --watchedNamespaces=default
</code></pre>
<p>With the operator installed, you can now create a mesh by deploying an <code>IstioOperator</code> resource. To install the Istio demo configuration profile using the operator, run the following command:</p>
<pre class="lang-text prettyprint-override"><code>kubectl apply -f - &lt;&lt;EOF
apiVersion: install.istio.io/v1alpha1
kind: IstioOperator
metadata:
  namespace: istio-system
  name: example-istiocontrolplane
spec:
  profile: demo
EOF
</code></pre>
<p>Now, with the controller running, you can change the Istio configuration by editing or replacing the <code>IstioOperator</code> resource. The controller will detect the change and respond by updating the Istio installation correspondingly.</p>
