Skip to content

Commit d89c606

Browse files
authored
fix(opentelemetry): update method names of sprring controllers to match the javadoc (GoogleCloudPlatform#8973)
1 parent 5737392 commit d89c606

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

opentelemetry/spring-boot-instrumentation/src/main/java/com/example/demo/MultiController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public class MultiController {
4040
* span for the controller body.
4141
*/
4242
@GetMapping("/multi")
43-
public Mono<String> index() throws Exception {
43+
public Mono<String> handleMulti() throws Exception {
4444
int subRequests = ThreadLocalRandom.current().nextInt(3, 8);
4545

4646
// Write a structured log with the request context, which allows the log to

opentelemetry/spring-boot-instrumentation/src/main/java/com/example/demo/SingleController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public class SingleController {
3535
* span for the controller body.
3636
*/
3737
@GetMapping("/single")
38-
public String index() throws InterruptedException {
38+
public String handleSingle() throws InterruptedException {
3939
int sleepMillis = ThreadLocalRandom.current().nextInt(100, 200);
4040
logger.info("Going to sleep for {}", sleepMillis);
4141
Thread.sleep(sleepMillis);

0 commit comments

Comments
 (0)