You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: code/chapter09/payment/README.adoc
+3-19Lines changed: 3 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@
7
7
8
8
toc::[]
9
9
10
-
This microservice demonstrates MicroProfile Telemetry 2.1 integrated with the LGTM observability stack (Loki, Grafana, Tempo, Prometheus) via an OpenTelemetry Collector. It is part of the Chapter 09 MicroProfile tutorial.
10
+
This microservice demonstrates MicroProfile Telemetry 2.1 integrated with the LGTM observability stack (Loki, Grafana, Tempo, Mimir/Prometheus) via an OpenTelemetry Collector. It is part of the Chapter 09 MicroProfile tutorial.
11
11
12
12
The service processes payments with full fault tolerance (retry, fallback, circuit breaker, bulkhead, timeout) and exports **traces**, **metrics**, and **logs** over OTLP to the LGTM stack.
13
13
@@ -530,25 +530,9 @@ Run the following to exercise all telemetry paths:
530
530
curl -s -X POST "http://localhost:9080/payment/authorize?amount=75.50"
531
531
532
532
# 2. Full payment with card details (creates payment.process span)
533
-
curl -s -X POST "http://localhost:9080/payment/payments" \
533
+
curl -s -X POST "http://localhost:9080/payment/api/payments-config/process-example" \
curl -s -X POST "http://localhost:9080/payment/notify/PAY-12345?recipient=ops@example.com"
552
536
----
553
537
554
538
Run each command several times to produce enough data for Grafana to display.
@@ -564,7 +548,7 @@ Run each command several times to produce enough data for Grafana to display.
564
548
565
549
You should see recent traces. Click any trace to expand the span tree. Look for:
566
550
567
-
* Root HTTP span: `POST /payment/payments` or `POST /payment/verify`
551
+
* Root HTTP span: `POST /payment/api`
568
552
* Child span: `payment.process` with attributes `payment.amount`, `payment.method`, `payment.status`
569
553
* For the verify flow: `validatePaymentDetails`, `performFraudCheck`, `verifyFundsAvailability`, `recordTransaction` steps appear as log events on the span
0 commit comments