From 72ce262bc491f94297700e6002fb5d0812e2cc2a Mon Sep 17 00:00:00 2001 From: Janis Date: Wed, 13 May 2026 00:02:53 +0200 Subject: [PATCH] feat: update application.yml with new API root paths and add Micrometer and OpenTelemetry dependencies --- .codesight/CODESIGHT.md | 21 +++++++++++++------ .codesight/libs.md | 21 +++++++++++++------ .../src/main/resources/application.yml | 2 ++ .../core/src/main/resources/application.yml | 2 ++ modules/io/build.gradle.kts | 3 +++ modules/rule/build.gradle.kts | 2 ++ .../store/src/main/resources/application.yml | 2 ++ modules/ws/src/main/resources/application.yml | 2 ++ 8 files changed, 43 insertions(+), 12 deletions(-) diff --git a/.codesight/CODESIGHT.md b/.codesight/CODESIGHT.md index de5b518..b74c2a9 100644 --- a/.codesight/CODESIGHT.md +++ b/.codesight/CODESIGHT.md @@ -129,20 +129,20 @@ - `modules/account/src/main/scala/de/nowchess/account/resource/OfficialChallengeResource.scala` — class OfficialChallengeResource, function challengeWithDifficulty - `modules/account/src/main/scala/de/nowchess/account/service/AccountService.scala` - class AccountService + - function initializeMetrics - function register - function login - function findByUsername - function findById - - function createBotAccount - - _...10 more_ + - _...11 more_ - `modules/account/src/main/scala/de/nowchess/account/service/ChallengeService.scala` - class ChallengeService + - function initializeMetrics - function create - function accept - function decline - function cancel - - function findById - - _...2 more_ + - _...3 more_ - `modules/account/src/main/scala/de/nowchess/account/service/EventPublisher.scala` - class EventPublisher - function publishGameStart @@ -262,6 +262,7 @@ - `modules/coordinator/src/main/scala/de/nowchess/coordinator/service/CacheEvictionManager.scala` - class CacheEvictionManager - function setRedisPrefix + - function initializeMetrics - function evictStaleGames - `modules/coordinator/src/main/scala/de/nowchess/coordinator/service/FailoverService.scala` - class FailoverService @@ -270,6 +271,7 @@ - `modules/coordinator/src/main/scala/de/nowchess/coordinator/service/HealthMonitor.scala` - class HealthMonitor - function setRedisPrefix + - function initializeMetrics - function checkInstanceHealth - function watchK8sPods - `modules/coordinator/src/main/scala/de/nowchess/coordinator/service/InstanceRegistry.scala` @@ -569,7 +571,10 @@ - function clear - `modules/official-bots/src/main/scala/de/nowchess/bot/resource/OfficialBotChallengeResource.scala` — class OfficialBotChallengeResource, function challengeWithDifficulty - `modules/official-bots/src/main/scala/de/nowchess/bot/service/DifficultyMapper.scala` — class DifficultyMapper, function fromElo -- `modules/official-bots/src/main/scala/de/nowchess/bot/service/OfficialBotService.scala` — class OfficialBotService, function onStart +- `modules/official-bots/src/main/scala/de/nowchess/bot/service/OfficialBotService.scala` + - class OfficialBotService + - function initializeMetrics + - function onStart - `modules/official-bots/src/main/scala/de/nowchess/bot/util/PolyglotBook.scala` — function probe, function select - `modules/official-bots/src/main/scala/de/nowchess/bot/util/PolyglotHash.scala` — class PolyglotHash, function hash - `modules/official-bots/src/main/scala/de/nowchess/bot/util/ZobristHash.scala` @@ -611,12 +616,16 @@ - function getGame - function getRunning - function getHistory -- `modules/store/src/main/scala/de/nowchess/store/service/GameWritebackService.scala` — class GameWritebackService, function writeBack +- `modules/store/src/main/scala/de/nowchess/store/service/GameWritebackService.scala` + - class GameWritebackService + - function initializeMetrics + - function writeBack - `modules/ws/src/main/scala/de/nowchess/ws/config/JacksonConfig.scala` — class JacksonConfig, function customize - `modules/ws/src/main/scala/de/nowchess/ws/config/NativeReflectionConfig.scala` — class NativeReflectionConfig - `modules/ws/src/main/scala/de/nowchess/ws/config/RedisConfig.scala` — class RedisConfig - `modules/ws/src/main/scala/de/nowchess/ws/resource/GameWebSocketResource.scala` - class GameWebSocketResource + - function initializeMetrics - function onOpen - function onTextMessage - function onClose diff --git a/.codesight/libs.md b/.codesight/libs.md index 2ab2f10..15b418e 100644 --- a/.codesight/libs.md +++ b/.codesight/libs.md @@ -73,20 +73,20 @@ - `modules/account/src/main/scala/de/nowchess/account/resource/OfficialChallengeResource.scala` — class OfficialChallengeResource, function challengeWithDifficulty - `modules/account/src/main/scala/de/nowchess/account/service/AccountService.scala` - class AccountService + - function initializeMetrics - function register - function login - function findByUsername - function findById - - function createBotAccount - - _...10 more_ + - _...11 more_ - `modules/account/src/main/scala/de/nowchess/account/service/ChallengeService.scala` - class ChallengeService + - function initializeMetrics - function create - function accept - function decline - function cancel - - function findById - - _...2 more_ + - _...3 more_ - `modules/account/src/main/scala/de/nowchess/account/service/EventPublisher.scala` - class EventPublisher - function publishGameStart @@ -206,6 +206,7 @@ - `modules/coordinator/src/main/scala/de/nowchess/coordinator/service/CacheEvictionManager.scala` - class CacheEvictionManager - function setRedisPrefix + - function initializeMetrics - function evictStaleGames - `modules/coordinator/src/main/scala/de/nowchess/coordinator/service/FailoverService.scala` - class FailoverService @@ -214,6 +215,7 @@ - `modules/coordinator/src/main/scala/de/nowchess/coordinator/service/HealthMonitor.scala` - class HealthMonitor - function setRedisPrefix + - function initializeMetrics - function checkInstanceHealth - function watchK8sPods - `modules/coordinator/src/main/scala/de/nowchess/coordinator/service/InstanceRegistry.scala` @@ -513,7 +515,10 @@ - function clear - `modules/official-bots/src/main/scala/de/nowchess/bot/resource/OfficialBotChallengeResource.scala` — class OfficialBotChallengeResource, function challengeWithDifficulty - `modules/official-bots/src/main/scala/de/nowchess/bot/service/DifficultyMapper.scala` — class DifficultyMapper, function fromElo -- `modules/official-bots/src/main/scala/de/nowchess/bot/service/OfficialBotService.scala` — class OfficialBotService, function onStart +- `modules/official-bots/src/main/scala/de/nowchess/bot/service/OfficialBotService.scala` + - class OfficialBotService + - function initializeMetrics + - function onStart - `modules/official-bots/src/main/scala/de/nowchess/bot/util/PolyglotBook.scala` — function probe, function select - `modules/official-bots/src/main/scala/de/nowchess/bot/util/PolyglotHash.scala` — class PolyglotHash, function hash - `modules/official-bots/src/main/scala/de/nowchess/bot/util/ZobristHash.scala` @@ -555,12 +560,16 @@ - function getGame - function getRunning - function getHistory -- `modules/store/src/main/scala/de/nowchess/store/service/GameWritebackService.scala` — class GameWritebackService, function writeBack +- `modules/store/src/main/scala/de/nowchess/store/service/GameWritebackService.scala` + - class GameWritebackService + - function initializeMetrics + - function writeBack - `modules/ws/src/main/scala/de/nowchess/ws/config/JacksonConfig.scala` — class JacksonConfig, function customize - `modules/ws/src/main/scala/de/nowchess/ws/config/NativeReflectionConfig.scala` — class NativeReflectionConfig - `modules/ws/src/main/scala/de/nowchess/ws/config/RedisConfig.scala` — class RedisConfig - `modules/ws/src/main/scala/de/nowchess/ws/resource/GameWebSocketResource.scala` - class GameWebSocketResource + - function initializeMetrics - function onOpen - function onTextMessage - function onClose diff --git a/modules/account/src/main/resources/application.yml b/modules/account/src/main/resources/application.yml index 902b684..873f8ee 100644 --- a/modules/account/src/main/resources/application.yml +++ b/modules/account/src/main/resources/application.yml @@ -57,6 +57,8 @@ nowchess: "%deployed": quarkus: + http: + root-path: /api/account log: console: json: true diff --git a/modules/core/src/main/resources/application.yml b/modules/core/src/main/resources/application.yml index 8b0a235..97d0514 100644 --- a/modules/core/src/main/resources/application.yml +++ b/modules/core/src/main/resources/application.yml @@ -74,6 +74,8 @@ nowchess: "%deployed": quarkus: + http: + root-path: /api log: console: json: true diff --git a/modules/io/build.gradle.kts b/modules/io/build.gradle.kts index 35b467f..977297a 100644 --- a/modules/io/build.gradle.kts +++ b/modules/io/build.gradle.kts @@ -68,6 +68,9 @@ dependencies { implementation("io.quarkus:quarkus-grpc") implementation("io.quarkus:quarkus-smallrye-health") implementation("io.quarkus:quarkus-smallrye-openapi") + implementation("io.quarkus:quarkus-micrometer") + implementation("io.quarkus:quarkus-micrometer-registry-prometheus") + implementation("io.quarkus:quarkus-opentelemetry") testImplementation(platform("org.junit:junit-bom:5.13.4")) testImplementation("org.junit.jupiter:junit-jupiter") diff --git a/modules/rule/build.gradle.kts b/modules/rule/build.gradle.kts index 4297761..db11e40 100644 --- a/modules/rule/build.gradle.kts +++ b/modules/rule/build.gradle.kts @@ -66,6 +66,8 @@ dependencies { implementation("io.quarkus:quarkus-smallrye-jwt") implementation("io.quarkus:quarkus-smallrye-health") implementation("io.quarkus:quarkus-micrometer") + implementation("io.quarkus:quarkus-micrometer-registry-prometheus") + implementation("io.quarkus:quarkus-opentelemetry") implementation("io.quarkus:quarkus-arc") implementation("com.fasterxml.jackson.module:jackson-module-scala_3:${versions["JACKSON_SCALA"]!!}") diff --git a/modules/store/src/main/resources/application.yml b/modules/store/src/main/resources/application.yml index bb88c62..73dc81b 100644 --- a/modules/store/src/main/resources/application.yml +++ b/modules/store/src/main/resources/application.yml @@ -30,6 +30,8 @@ nowchess: "%deployed": quarkus: + http: + root-path: /api/store log: console: json: true diff --git a/modules/ws/src/main/resources/application.yml b/modules/ws/src/main/resources/application.yml index b5ea0a4..3607125 100644 --- a/modules/ws/src/main/resources/application.yml +++ b/modules/ws/src/main/resources/application.yml @@ -29,6 +29,8 @@ nowchess: "%deployed": quarkus: + http: + root-path: /ws log: console: json: true