Skip to content

Commit

Permalink
Some minor changes
Browse files Browse the repository at this point in the history
Signed-off-by: Pavol Loffay <p.loffay@gmail.com>
  • Loading branch information
pavolloffay committed Feb 28, 2024
1 parent a0be44b commit 3f5dd60
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions 03-auto-instrumentation.md
Expand Up @@ -289,6 +289,7 @@ See the [Instrumentation CR](./app/instrumentation-java-custom-config.yaml).
```bash
kubectl apply -f https://raw.githubusercontent.com/pavolloffay/kubecon-eu-2024-opentelemetry-kubernetes-tracing-tutorial/main/app/instrumentation-java-custom-config.yaml
kubectl rollout restart deployment.apps/backend2-deployment -n tutorial-application
kubectl get pods -w -n tutorial-application
```
![Span from backend2-deployment](./images/jaeger-capture-custom-headers.jpg)
Expand Down
Expand Up @@ -36,6 +36,7 @@ public String index(@RequestParam("player") Optional<String> player) {
}

public int getRandomNumber(int min, int max) {
return (int) ((Math.random() * (max - min)) + min);
int result = (int) ((Math.random() * (max - min)) + min);
return result;
}
}

0 comments on commit 3f5dd60

Please sign in to comment.