Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ashutoshsahoo/gs-spring-boot3-open-telemetry
Spring Boot 3 with Open Telemetry
https://github.com/ashutoshsahoo/gs-spring-boot3-open-telemetry
docker-compose dockerfile flyway-migrations gradle-multi-project grafana h2-database open-telemetry-java openapi openapi-aggregraton openapi-spec prometheus-metrics spring-boot-3 tracing-applications
Last synced: 25 days ago
JSON representation
Spring Boot 3 with Open Telemetry
- Host: GitHub
- URL: https://github.com/ashutoshsahoo/gs-spring-boot3-open-telemetry
- Owner: ashutoshsahoo
- Created: 2023-04-15T09:18:28.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-04T19:06:13.000Z (about 1 year ago)
- Last Synced: 2024-10-01T06:44:00.789Z (about 1 month ago)
- Topics: docker-compose, dockerfile, flyway-migrations, gradle-multi-project, grafana, h2-database, open-telemetry-java, openapi, openapi-aggregraton, openapi-spec, prometheus-metrics, spring-boot-3, tracing-applications
- Language: Java
- Homepage:
- Size: 26.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.MD
Awesome Lists containing this project
README
# Spring Boot Open Telemetry
## Run Infrastructure:
```shell
cd infra
docker compose up -d
```### URL for tools
- [Prometheus](http://localhost:9090/)
- [Grafana](http://localhost:3000/)## Run application
* Address-Service
```shell
cd address-service
gradle clean bootRun
```* User-Service
```shell
cd user-service
gradle clean bootRun
```* open-api-aggregate-service (optional)
```shell
cd open-api-aggregate-service
gradle clean bootRun
```### Send some traffic to application
```shell
while true; do curl http://localhost:8080/api/v1/users ; sleep 1; done
```### Open API Documents
- [Common Swagger URL](http://localhost:8086/swagger-ui/index.html)
- [Address-Service](http://localhost:8085/swagger-ui/index.html)
- [User-Service](http://localhost:8080/swagger-ui/index.html)## Cleanup
```shell
cd infra
docker compose down
```## Reference
* [Reactive Observability in Spring Boot 3](https://tanzu.vmware.com/developer/guides/observability-reactive-spring-boot-3/)
* [Open API Spring Docs](https://springdoc.org/v2/)
* [Logbook: HTTP request and response logging](https://github.com/zalando/logbook#logbook-http-request-and-response-logging)