OpenTelemetry
In order to make a system observable, it must be instrumented. Language specific implementation of OpenTelemetry provides a way to instrument your application without touching your source code. In this lab we're going to instrument a Java application.
Prerequisites
-For this lab it is required to:
+Make sure the following Apps are enabled:
-
-
- Enable
Tempo
- - Enable
Otel
- - Enable
Loki
- - Enable
Grafana
- - Enable tracing for
Istio
andNginx Ingress
+ Tempo
on Platform
+Otel
on Platform
+Loki
on Platform
+Grafana
for the Team
Enable tracing for Istio
and ingress-nginx-platform
:
-
+
- Go to
Apps
+ - Click on
Istio
+ - Click on the configuration icon +
- Click on the
Values
tab
+ - In the values click
Edit
and set the following values
+
tracing:
enabled: true
samplingRatio: "100"
Setting the samplingRatio
to 100
is only done for this lab to make sure all traces are sampled. In a production environment the ratio would normally be set to 0.01
.
-
+
- Click
Submit
+ - Repeat step 2 to 6 for the
ingress-nginx-platform
app
+ - Click
Deploy Changes
+
Build an image from source code
For this lab we're going to use the Spring PetClinic Sample Application. Follow these steps to build an image from source code:
Using a Gitea repository is not required. You can also build using public repositories.