{"id":25919718,"url":"https://github.com/youssefgamalmohamed/observability-spring-boot","last_synced_at":"2026-04-07T07:47:31.427Z","repository":{"id":280182416,"uuid":"941218146","full_name":"youssefGamalMohamed/observability-spring-boot","owner":"youssefGamalMohamed","description":"This Repo Contians Example About Observability Into Spring Boot With Zipkin and Store Data Into DB Into Postegres","archived":false,"fork":false,"pushed_at":"2025-03-02T01:18:34.000Z","size":37,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-10T05:44:34.693Z","etag":null,"topics":["auditing","database-audit","docker","docker-compose","jpa","map-struct","observability","openapi","postgresql","rest-client","spring-boot","spring-data-jpa","spring-security","swagger","zipkin"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/youssefGamalMohamed.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-01T19:12:10.000Z","updated_at":"2025-03-02T09:37:11.000Z","dependencies_parsed_at":"2025-03-01T20:42:05.848Z","dependency_job_id":null,"html_url":"https://github.com/youssefGamalMohamed/observability-spring-boot","commit_stats":null,"previous_names":["youssefgamalmohamed/observability-spring-boot"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/youssefGamalMohamed/observability-spring-boot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youssefGamalMohamed%2Fobservability-spring-boot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youssefGamalMohamed%2Fobservability-spring-boot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youssefGamalMohamed%2Fobservability-spring-boot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youssefGamalMohamed%2Fobservability-spring-boot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/youssefGamalMohamed","download_url":"https://codeload.github.com/youssefGamalMohamed/observability-spring-boot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youssefGamalMohamed%2Fobservability-spring-boot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275038260,"owners_count":25394640,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-13T02:00:10.085Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["auditing","database-audit","docker","docker-compose","jpa","map-struct","observability","openapi","postgresql","rest-client","spring-boot","spring-data-jpa","spring-security","swagger","zipkin"],"created_at":"2025-03-03T15:15:53.431Z","updated_at":"2025-12-30T21:24:00.423Z","avatar_url":"https://github.com/youssefGamalMohamed.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Observability in Spring Boot\n\nThis repository provides an example of implementing observability in a Spring Boot application. Observability enables monitoring and understanding the internal state of a system by collecting and analyzing logs, metrics, and traces.\n\n## Features\n\n- **Spring Boot Application**: Demonstrates observability practices within a Spring Boot framework.\n- **Docker Compose Integration**: Orchestrates services, including the application and observability tools, using Docker Compose.\n- **PostgreSQL Database**: Integrates with a PostgreSQL database for data persistence.\n- **Zipkin for Distributed Tracing**: Implements Zipkin to collect and visualize trace data, aiding in performance monitoring and troubleshooting.\n- **MapStruct for Object Mapping**: Utilizes MapStruct for efficient and type-safe object mapping between DTOs and entities.\n- **Spring Security**: Secures application endpoints using Spring Security.\n- **Swagger/OpenAPI Documentation**: Provides interactive API documentation with Swagger UI.\n\n## Prerequisites\n\nEnsure you have the following installed:\n\n- [Docker](https://www.docker.com/get-started)\n- [Docker Compose](https://docs.docker.com/compose/install/)\n- [Java Development Kit (JDK) 11 or higher](https://adoptopenjdk.net/)\n- [Maven](https://maven.apache.org/install.html)\n\n## Getting Started\n\n### Clone the Repository\n\n```bash\ngit clone https://github.com/youssefGamalMohamed/observability-spring-boot.git\ncd observability-spring-boot\n```\n\n### Build the Application\n\n```bash\n./mvnw clean install\n```\n\n### Start Services with Docker Compose\n\n```bash\ndocker-compose up\n```\n\nThis command will start the Spring Boot application, PostgreSQL database, and Zipkin for tracing.\n\n### Access the Application\n\n- **Application Endpoint**: `http://localhost:8080`\n- **Swagger UI**: `http://localhost:8080/swagger-ui.html`\n- **Zipkin Dashboard**: `http://localhost:9411`\n\n## Observability Components\n\n- **Metrics**: Exposed via Spring Boot Actuator at `http://localhost:8080/actuator/metrics`.\n- **Health Checks**: Available at `http://localhost:8080/actuator/health`.\n- **Distributed Tracing**: Visualize traces using the Zipkin dashboard at `http://localhost:9411`.\n\n## Security\n\nThe application uses Spring Security to protect endpoints. Configure security settings in the `application.yml` file.\n\n## API Documentation\n\nInteractive API documentation is available through Swagger UI at `http://localhost:8080/swagger-ui.html`.\n\n## Additional Resources\n\nFor further reading on observability in Spring Boot, consider exploring the following resources:\n\n- [Spring Boot Actuator: Production-ready Features](https://docs.spring.io/spring-boot/docs/current/reference/html/actuator.html)\n- [Micrometer: Application Metrics Facade](https://micrometer.io/)\n- [Zipkin: Distributed Tracing System](https://zipkin.io/)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyoussefgamalmohamed%2Fobservability-spring-boot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyoussefgamalmohamed%2Fobservability-spring-boot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyoussefgamalmohamed%2Fobservability-spring-boot/lists"}