You can use W3C tracing to troubleshoot failures or latency issues in your apps. You can trace requests and responses across distributed systems. For more information, see w3c.org.
W3C tracing is disabled by default in VMware Tanzu Application Service for VMs (TAS for VMs). To activate this feature:
Go to Tanzu Operations Manager Installation Dashboard.
Click the TAS for VMs tile.
Select Networking.
Select the Add W3C tracing headers check box.
Optionally, enter tenant ID name used in traceparent
header in W3C tracing tenant ID field.
Click Save.
For more information about how the Gorouter works with HTTP headers and W3C tracing, see HTTP headers for W3C tracing in HTTP Routing.
To trace app requests and responses in VMware Tanzu Application Service for VMs (TAS for VMs), apps must also log W3C headers.
After adding W3C HTTP headers to app logs, developers can use cf logs myapp
to correlate the trace and span IDs logged by the Gorouter with the trace IDs logged by their app. To correlate trace IDs for a request through multiple apps, each app must forward appropriate values for the headers with requests to other apps.