Skip to content

feat: multi-module setup and core Micrometer instrumentation#325

Open
heruan wants to merge 13 commits into
micrometerfrom
feat/micrometer-core
Open

feat: multi-module setup and core Micrometer instrumentation#325
heruan wants to merge 13 commits into
micrometerfrom
feat/micrometer-core

Conversation

@heruan
Copy link
Copy Markdown
Member

@heruan heruan commented Jun 2, 2026

Closes #324.

Establishes the Maven multi-module project and the framework-agnostic core module providing Micrometer-based instrumentation for Vaadin Flow in standalone (non-Spring) deployments.

What's included

  • Reactor root build: parent + BOM-managed Flow / Micrometer / JUnit, Java 21, commercial license.
  • observability-kit-micrometer module (com.vaadin.observability.micrometer).
  • ObservabilityKit.install(meterRegistry, settings) programmatic bootstrap for standalone use.
  • Immutable ObservabilitySettings with feature toggles (sessions, UIs, navigation, requests, errors, client, traces) and limits.
  • Automatic wiring via Vaadin's service-init SPI — no manual registration needed.
  • First metric: active Vaadin sessions gauge (vaadin.sessions.active).

Notes

  • Built and tested on JDK 25 (project targets Java 21); jakarta.servlet-api (provided) and Mockito 5.20.0 are required for the mock-based tests to run.
  • mvn verify green (9 unit tests).

Out of scope

Spring / Spring Boot integration and the remaining metrics, tracing, and client instrumentation (later parts).

@heruan heruan changed the title Part 1: Multi-module setup and core Micrometer instrumentation feat: multi-module setup and core Micrometer instrumentation Jun 2, 2026
@heruan heruan self-assigned this Jun 2, 2026
heruan added 3 commits June 2, 2026 17:15
Replaces the unenforced revelc formatter with spotless-maven-plugin (3.5.1)
using Flow's eclipse config, import order, wildcard-import ban, and the Vaadin
commercial license header. Reformats sources accordingly and adds a
spotless:check step to the validation workflow.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants