Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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)