-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Benedikt Bongartz <[email protected]>
- Loading branch information
Showing
1 changed file
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# ARO dev observability | ||
|
||
## Tracing | ||
|
||
ARO frontend, cluster service and other components are instrumented with the OpenTelemetry SDK. | ||
In the current development environment, there is no possibility to inspect traces. | ||
|
||
### Deploy Jaeger all-in-one testing backend | ||
|
||
#### Install | ||
``` | ||
make deploy | ||
``` | ||
|
||
After installation, the `jaeger` service becomes available in the `observability` namespace. We can access the UI using `kubectl port-forward`: | ||
|
||
``` | ||
kubectl port-forward -n observability svc/jaeger 16686:16686 | ||
``` | ||
|
||
The `observability` namespace contains a second service named `ingest` which accepts otlp via gRPC and HTTP. | ||
|
||
#### Configure instances | ||
|
||
The export of the trace information is configured via environment variables. Existing deployments can be patched as follows: | ||
|
||
```diff | ||
+ env: | ||
+ - name: OTEL_EXPORTER_OTLP_ENDPOINT | ||
+ value: https://<service>.<namespace>:4318 | ||
+ - name: OTEL_TRACES_EXPORTER | ||
+ value: otlp | ||
``` | ||
|
||
You can use: | ||
|
||
``` | ||
make patch-frontend | ||
make patch-clusteservice | ||
``` | ||
|
||
|
||
### Correlate with ARM requests | ||
|
||
The following span attributes are set in the root span and propagated to the next service via baggage: | ||
|
||
``` | ||
aro.correlation.id | ||
aro.request.id | ||
aro.client.request.id | ||
``` |