-
Notifications
You must be signed in to change notification settings - Fork 109
/
w3c_tracing.html.md.erb
31 lines (18 loc) · 1.18 KB
/
w3c_tracing.html.md.erb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
---
title: Enabling W3C tracing in Cloud Foundry
owner: CF for VMs Networking
---
<%# Reset page title based on platform type %>
<% if vars.platform_code != 'CF' %>
<% set_title("Enabling W3C tracing in", vars.app_runtime_abbr) %>
<% end %>
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](https://www.w3.org/TR/trace-context/).
<% if vars.platform_code != "CF" %>
<%= partial "/pcf/core/w3c-pcf-config" %>
<% else %>
<%= partial "w3c_oss_config" %>
<% end %>
For more information about how the Gorouter works with HTTP headers and W3C tracing, see [HTTP headers for W3C tracing](../concepts/http-routing.html#w3c-headers) in _HTTP Routing_.
To trace app requests and responses in <%= vars.app_runtime_first %>, 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.