Zipkin
After completing this task, you understand how to have your application participate in tracing with Zipkin6, regardless of the language, framework, or platform you use to build your application.
This task uses the Bookinfo7 sample as the example application.
To learn how Istio handles tracing, visit this task’s overview8.
Before you begin
Follow the Zipkin installation documentation to deploy Zipkin into your cluster.
Deploy the Bookinfo sample application.
Configure Istio for distributed tracing
Configure an extension provider
Install Istio with an extension provider referring to the Zipkin service:
Enable tracing
Enable tracing by applying the following configuration:
Accessing the dashboard
The Remotely Accessing Telemetry Addons task9 details how to configure access to the Istio addons through a gateway.
For testing (and temporary access), you may also use port-forwarding. Use the following, assuming you’ve deployed Zipkin to the istio-system
namespace:
Generating traces using the Bookinfo sample
When the Bookinfo application is up and running, access
http://$GATEWAY_URL/productpage
one or more times to generate trace information.To see trace data, you must send requests to your service. The number of requests depends on Istio’s sampling rate and can be configured using the Telemetry API10. With the default sampling rate of 1%, you need to send at least 100 requests before the first trace is visible. To send 100 requests to the
productpage
service, use the following command:From the search panel, click on the plus sign. Select
serviceName
from the first drop-down list,productpage.default
from second drop-down, and then click the search icon:Tracing Dashboard Click on the
ISTIO-INGRESSGATEWAY
search result to see the details corresponding to the latest request to/productpage
:Detailed Trace View The trace is comprised of a set of spans, where each span corresponds to a Bookinfo service, invoked during the execution of a
/productpage
request, or internal Istio component, for example:istio-ingressgateway
.
Cleanup
Remove any
istioctl
processes that may still be running using control-C or:If you are not planning to explore any follow-on tasks, refer to the Bookinfo cleanup instructions to shutdown the application.