== Purpose
A example that demonstrates how to configure and deploy a Spring Boot app instrumented using Opentracing.
== Technical details
This example showcases how to use include link:https://github.com/opentracing-contrib/java-spring-jaeger[opentracing-spring-jaeger-web-starter] to instrument a Spring Boot application by enabling the reporting of Traces to a OpenTracing compatible collector
== Deploying and interacting with the example
=== Spring Boot running locally
Get the route address
Add the following jaeger
properties to the application.yml file with the route address of the collector
http http://localhost:8080/hello HTTP/1.1 200 Content-Length: 23 Content-Type: text/plain;charset=UTF-8 Date: Wed, 10 Jan 2018 16:00:50 GMT
or query it from a terminal
http --verify=no https://jaeger-query-jaeger.ocp.spring-boot.osepool.centralci.eng.rdu2.redhat.com/api/traces?service=spring-boot HTTP/1.1 200 OK Cache-control: private Content-Type: application/json Date: Wed, 10 Jan 2018 17:13:34 GMT Set-Cookie: f2a76eea670eef399f3e86a8a443f3e5=713f7dc386ce37099352855f8ec66619; path=/; HttpOnly Transfer-Encoding: chunked
{ "data": [ { "processes": { "p1": { "serviceName": "spring-boot", "tags": [ { "key": "hostname", "type": "string", "value": "dabou" },
=== Spring Boot deployed on OpenShift with Jaeger Agent as sidecar
As Fabric8 Maven Plugin doesn't allow to easily add a side car container within the DeploymentConfig yaml file generated, then an OpenShift Template should be created to build/deploy it on OpenShift !!!!