Skip to content

Commit b070b33

Browse files
authored
Spring Cloud Tracing Demo Fixes (thombergs#188)
* Spring Cloud Tracing Demo Fixes * Update docker-compose.yml
1 parent a66b6a0 commit b070b33

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

spring-cloud/tracing/customer-service/src/main/java/com/example/demo/Controller.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,7 @@ public ResponseEntity<Customer> getCustomer(@PathVariable("id") long customerId)
2727
customer.setId(customerId);
2828
customer.setName(NAMES.get((int) customerId));
2929

30-
throw new IllegalStateException("BWAAAH!");
31-
32-
// return new ResponseEntity<>(customer, HttpStatus.OK);
30+
return new ResponseEntity<>(customer, HttpStatus.OK);
3331
}
3432

3533
@GetMapping(path = "addresses/{id}")

spring-cloud/tracing/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ services:
1212
build: ./customer-service/
1313
image: customer-service:latest
1414
ports:
15-
- "8081:8081"
15+
- "8081"
1616

1717
collector:
1818
image: logzio/otel-collector-traces

0 commit comments

Comments
 (0)