OtelReactiveSpringStarterSmokeTestController.java 514 B

123456789101112131415161718192021
  1. /*
  2. * Copyright The OpenTelemetry Authors
  3. * SPDX-License-Identifier: Apache-2.0
  4. */
  5. package io.opentelemetry.spring.smoketest;
  6. import org.springframework.web.bind.annotation.GetMapping;
  7. import org.springframework.web.bind.annotation.RestController;
  8. import reactor.core.publisher.Mono;
  9. @RestController
  10. public class OtelReactiveSpringStarterSmokeTestController {
  11. public static final String WEBFLUX = "/webflux";
  12. @GetMapping(WEBFLUX)
  13. public Mono<String> webflux() {
  14. return Mono.just("webflux");
  15. }
  16. }