=language-bash data-expandlinks=true data-repo=istio>$ kubectl apply -f @samples/open-telemetry/otel.yaml@ -n istio-system
</code></pre></div></li></ul><h2 id=enable-envoys-access-logging>Enable Envoy&rsquo;s access logging</h2><p>To enable access logging, use the <a href=/v1.17/docs/tasks/observability/telemetry/>Telemetry API</a>.</p><p>Edit <code>MeshConfig</code> to add an OpenTelemetry provider, named <code>otel</code>. This involves adding an extension provider stanza:</p><pre><code class=language-yam