https://github.com/mfvanek/spring-boot-open-telemetry-demo
Spring Boot Open Telemetry Demo
https://github.com/mfvanek/spring-boot-open-telemetry-demo
docker gradle gradle-8 hacktoberfest java java-17 kafka kotlin-dsl open-telemetry sleuth spring spring-boot spring-boot-2 spring-boot-3
Last synced: 23 days ago
JSON representation
Spring Boot Open Telemetry Demo
- Host: GitHub
- URL: https://github.com/mfvanek/spring-boot-open-telemetry-demo
- Owner: mfvanek
- License: apache-2.0
- Created: 2020-05-17T16:34:24.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2025-02-02T19:18:03.000Z (10 months ago)
- Last Synced: 2025-02-08T01:11:46.849Z (9 months ago)
- Topics: docker, gradle, gradle-8, hacktoberfest, java, java-17, kafka, kotlin-dsl, open-telemetry, sleuth, spring, spring-boot, spring-boot-2, spring-boot-3
- Language: Java
- Homepage:
- Size: 575 KB
- Stars: 4
- Watchers: 2
- Forks: 4
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Spring Boot OpenTelemetry Demo
A set of small Spring Boot applications to demonstrate OpenTelemetry capabilities and nuances
[](https://github.com/mfvanek/spring-boot-open-telemetry-demo/actions/workflows/tests.yml)
[](https://codecov.io/gh/mfvanek/spring-boot-open-telemetry-demo)
## Spring Cloud Sleuth example
If you are looking for a **Spring Boot 2.7.x** example with [Spring Cloud Sleuth](https://spring.io/projects/spring-cloud-sleuth), take a look at version [0.4.1](https://github.com/mfvanek/spring-boot-open-telemetry-demo/releases/tag/v.0.4.1)
## Local run from IDEA
### Start containers
```shell
docker-compose --file docker/docker-compose-base.yml --project-name="spring-boot-open-telemetry-demo" up -d
```
#### UI links
* [Jaeger UI](http://localhost:16686)
* [Kafka UI](http://localhost:18080)
### Start applications
```shell
./gradlew spring-boot-3-demo-app-kotlin:bootRun
```
```shell
./gradlew spring-boot-3-demo-app:bootRun
```
### Make http request
```shell
curl http://localhost:8090/current-time
```
```shell
curl http://localhost:8080/current-time
```
#### Other endpoints
* [Swagger UI](http://localhost:8085/actuator/swagger-ui)
* [Prometheus metrics](http://localhost:8085/actuator/prometheus)
* [Health](http://localhost:8085/actuator/health)
## Run in Docker
### Build images
```shell
./gradlew dockerBuildImage
```
### Run via Compose
```shell
docker-compose --file docker/docker-compose-full.yml --project-name="spring-boot-open-telemetry-demo" up -d
```
#### UI links
* [Jaeger UI](http://localhost:16686)
* [Kafka UI](http://localhost:18080)
#### How to stop
```shell
docker-compose --project-name="spring-boot-open-telemetry-demo" down
```