Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,22 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [1.2.0] - 2026-04-17

### Added
- **Context path awareness** — J-Obs UI now respects `server.servlet.context-path` and `spring.webflux.base-path`, so all dashboard links and asset URLs work correctly when the application is deployed under a non-root context (e.g. `/my-app/j-obs`). Previously all links hardcoded `/j-obs` and returned 404.
- **`TemplateService.fullPath()` / `getContextPath()`** — single source of truth for path resolution across controllers, including a new `{{CONTEXT_PATH}}` placeholder used by the API Docs page for Swagger UI and OpenAPI spec links.
- **WebFlux fallback** — when `server.servlet.context-path` is absent, `TemplateService` falls back to `spring.webflux.base-path`.
- **`TemplateServiceTest`** — 8 JUnit tests covering servlet context-path, WebFlux base-path, trailing-slash normalization, and empty context-path scenarios.

### Changed
- `TemplateService` now precomputes `fullPath` at construction time (path resolution is immutable post-boot).
- `AlertController` and `SqlAnalyzerController` aligned with the class-level `@RequestMapping` convention used by the other UI controllers.
- The `templateService` bean definition moved from `JObsToolsAutoConfiguration` into the core `JObsAutoConfiguration` / `JObsWebFluxAutoConfiguration` so all controllers can depend on it.

### Fixed
- `JObsLogAutoConfigurationTest` now loads `JObsAutoConfiguration` in addition to `JObsLogAutoConfiguration`, since `LogController` depends on `TemplateService`.

## [1.0.25] - 2026-03-22

### Added
Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ sequenceDiagram
<dependency>
<groupId>io.github.johnpitter</groupId>
<artifactId>j-obs-spring-boot-starter</artifactId>
<version>1.1.0</version>
<version>1.2.0</version>
</dependency>
```

Expand All @@ -166,28 +166,28 @@ J-Obs offers **modular starters** so you can include only the features you need,
<dependency>
<groupId>io.github.johnpitter</groupId>
<artifactId>j-obs-starter-tracing</artifactId>
<version>1.1.0</version>
<version>1.2.0</version>
</dependency>

<!-- Metrics dashboard only (Micrometer + Actuator) -->
<dependency>
<groupId>io.github.johnpitter</groupId>
<artifactId>j-obs-starter-metrics</artifactId>
<version>1.1.0</version>
<version>1.2.0</version>
</dependency>

<!-- Real-time log streaming only (Logback + WebSocket) -->
<dependency>
<groupId>io.github.johnpitter</groupId>
<artifactId>j-obs-starter-logging</artifactId>
<version>1.1.0</version>
<version>1.2.0</version>
</dependency>

<!-- CPU/Memory profiling only (JVM MXBeans) -->
<dependency>
<groupId>io.github.johnpitter</groupId>
<artifactId>j-obs-starter-profiling</artifactId>
<version>1.1.0</version>
<version>1.2.0</version>
</dependency>
```

Expand All @@ -198,12 +198,12 @@ You can combine multiple starters:
<dependency>
<groupId>io.github.johnpitter</groupId>
<artifactId>j-obs-starter-tracing</artifactId>
<version>1.1.0</version>
<version>1.2.0</version>
</dependency>
<dependency>
<groupId>io.github.johnpitter</groupId>
<artifactId>j-obs-starter-metrics</artifactId>
<version>1.1.0</version>
<version>1.2.0</version>
</dependency>
```

Expand Down
2 changes: 1 addition & 1 deletion j-obs-benchmarks/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>io.github.johnpitter</groupId>
<artifactId>j-obs-parent</artifactId>
<version>1.1.0</version>
<version>1.2.0</version>
</parent>

<artifactId>j-obs-benchmarks</artifactId>
Expand Down
4 changes: 2 additions & 2 deletions j-obs-bom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<groupId>io.github.johnpitter</groupId>
<artifactId>j-obs-bom</artifactId>
<version>1.1.0</version>
<version>1.2.0</version>
<packaging>pom</packaging>

<name>J-Obs BOM</name>
Expand Down Expand Up @@ -43,7 +43,7 @@
</scm>

<properties>
<j-obs.version>1.1.0</j-obs.version>
<j-obs.version>1.2.0</j-obs.version>
</properties>

<dependencyManagement>
Expand Down
2 changes: 1 addition & 1 deletion j-obs-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<parent>
<groupId>io.github.johnpitter</groupId>
<artifactId>j-obs-parent</artifactId>
<version>1.1.0</version>
<version>1.2.0</version>
</parent>

<artifactId>j-obs-core</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion j-obs-sample/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<parent>
<groupId>io.github.johnpitter</groupId>
<artifactId>j-obs-parent</artifactId>
<version>1.1.0</version>
<version>1.2.0</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion j-obs-spring-boot-starter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<parent>
<groupId>io.github.johnpitter</groupId>
<artifactId>j-obs-parent</artifactId>
<version>1.1.0</version>
<version>1.2.0</version>
</parent>

<artifactId>j-obs-spring-boot-starter</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion j-obs-starter-logging/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<parent>
<groupId>io.github.johnpitter</groupId>
<artifactId>j-obs-parent</artifactId>
<version>1.1.0</version>
<version>1.2.0</version>
</parent>

<artifactId>j-obs-starter-logging</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion j-obs-starter-metrics/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<parent>
<groupId>io.github.johnpitter</groupId>
<artifactId>j-obs-parent</artifactId>
<version>1.1.0</version>
<version>1.2.0</version>
</parent>

<artifactId>j-obs-starter-metrics</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion j-obs-starter-profiling/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<parent>
<groupId>io.github.johnpitter</groupId>
<artifactId>j-obs-parent</artifactId>
<version>1.1.0</version>
<version>1.2.0</version>
</parent>

<artifactId>j-obs-starter-profiling</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion j-obs-starter-tracing/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<parent>
<groupId>io.github.johnpitter</groupId>
<artifactId>j-obs-parent</artifactId>
<version>1.1.0</version>
<version>1.2.0</version>
</parent>

<artifactId>j-obs-starter-tracing</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<groupId>io.github.johnpitter</groupId>
<artifactId>j-obs-parent</artifactId>
<version>1.1.0</version>
<version>1.2.0</version>
<packaging>pom</packaging>

<name>J-Obs Parent</name>
Expand Down
2 changes: 1 addition & 1 deletion samples/j-obs-alerts/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<parent>
<groupId>io.github.johnpitter</groupId>
<artifactId>j-obs-samples</artifactId>
<version>1.1.0</version>
<version>1.2.0</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion samples/j-obs-database/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<parent>
<groupId>io.github.johnpitter</groupId>
<artifactId>j-obs-samples</artifactId>
<version>1.1.0</version>
<version>1.2.0</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion samples/j-obs-microservices/api-gateway/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<parent>
<groupId>io.github.johnpitter</groupId>
<artifactId>j-obs-microservices</artifactId>
<version>1.1.0</version>
<version>1.2.0</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion samples/j-obs-microservices/inventory-service/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<parent>
<groupId>io.github.johnpitter</groupId>
<artifactId>j-obs-microservices</artifactId>
<version>1.1.0</version>
<version>1.2.0</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion samples/j-obs-microservices/order-service/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<parent>
<groupId>io.github.johnpitter</groupId>
<artifactId>j-obs-microservices</artifactId>
<version>1.1.0</version>
<version>1.2.0</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion samples/j-obs-microservices/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<parent>
<groupId>io.github.johnpitter</groupId>
<artifactId>j-obs-samples</artifactId>
<version>1.1.0</version>
<version>1.2.0</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion samples/j-obs-minimal/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<parent>
<groupId>io.github.johnpitter</groupId>
<artifactId>j-obs-samples</artifactId>
<version>1.1.0</version>
<version>1.2.0</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion samples/j-obs-security/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<parent>
<groupId>io.github.johnpitter</groupId>
<artifactId>j-obs-samples</artifactId>
<version>1.1.0</version>
<version>1.2.0</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion samples/j-obs-slo/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<parent>
<groupId>io.github.johnpitter</groupId>
<artifactId>j-obs-samples</artifactId>
<version>1.1.0</version>
<version>1.2.0</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion samples/j-obs-webflux/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<parent>
<groupId>io.github.johnpitter</groupId>
<artifactId>j-obs-samples</artifactId>
<version>1.1.0</version>
<version>1.2.0</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion samples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<parent>
<groupId>io.github.johnpitter</groupId>
<artifactId>j-obs-parent</artifactId>
<version>1.1.0</version>
<version>1.2.0</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
Loading