an</code> template represents an individual span within a distributed trace.</p><p>Example config:</p><pre><code class=language-yaml>apiVersion: &quot;config.istio.io/v1alpha2&quot;
kind: instance
metadata:
  name: default
  namespace: istio-system
spec:
  compiledTemplate: tracespan
  params:
    traceId: request.headers[&quot;x-b3-traceid&quot;]
    spanId: request.headers[&quot;x-b3-spanid&quot;] | &quot;&quot;
    parentSpanId: request.headers[&quot;x-b3-parentspanid&quot;] | &quot;&quot;
    spanName: 