jhipster / generator-jhipster-micronaut

Micronaut blueprint for JHipster
Apache License 2.0
100 stars 29 forks source link

Missing name tag for metric warnings #302

Open mraible opened 9 months ago

mraible commented 9 months ago
Overview of the issue

These messages show up in the logs when you visit the metrics page of an app generated with mhipster jdl default --skip-jhipster-dependencies:

16:53:25.957 [default-nioEventLoopGroup-1-2] WARN  c.m.m.c.m.JHipsterMetricsEndpoint - Missing name tag for metric cache.gets
16:53:25.957 [default-nioEventLoopGroup-1-2] WARN  c.m.m.c.m.JHipsterMetricsEndpoint - Missing name tag for metric cache.evictions
16:53:25.957 [default-nioEventLoopGroup-1-2] WARN  c.m.m.c.m.JHipsterMetricsEndpoint - Missing name tag for metric cache.evictions
16:53:25.957 [default-nioEventLoopGroup-1-2] WARN  c.m.m.c.m.JHipsterMetricsEndpoint - Missing name tag for metric cache.gets
16:53:25.957 [default-nioEventLoopGroup-1-2] WARN  c.m.m.c.m.JHipsterMetricsEndpoint - Missing name tag for metric cache.gets
16:53:25.957 [default-nioEventLoopGroup-1-2] WARN  c.m.m.c.m.JHipsterMetricsEndpoint - Missing name tag for metric cache.evictions
16:53:25.957 [default-nioEventLoopGroup-1-2] WARN  c.m.m.c.m.JHipsterMetricsEndpoint - Missing name tag for metric cache.gets
16:53:25.957 [default-nioEventLoopGroup-1-2] WARN  c.m.m.c.m.JHipsterMetricsEndpoint - Missing name tag for metric cache.gets
16:53:25.957 [default-nioEventLoopGroup-1-2] WARN  c.m.m.c.m.JHipsterMetricsEndpoint - Missing name tag for metric cache.puts
16:53:25.957 [default-nioEventLoopGroup-1-2] WARN  c.m.m.c.m.JHipsterMetricsEndpoint - Missing name tag for metric cache.gets
16:53:25.957 [default-nioEventLoopGroup-1-2] WARN  c.m.m.c.m.JHipsterMetricsEndpoint - Missing name tag for metric cache.puts
16:53:25.957 [default-nioEventLoopGroup-1-2] WARN  c.m.m.c.m.JHipsterMetricsEndpoint - Missing name tag for metric cache.gets
16:53:25.957 [default-nioEventLoopGroup-1-2] WARN  c.m.m.c.m.JHipsterMetricsEndpoint - Missing name tag for metric cache.puts
16:53:25.957 [default-nioEventLoopGroup-1-2] WARN  c.m.m.c.m.JHipsterMetricsEndpoint - Missing name tag for metric cache.gets
16:53:25.957 [default-nioEventLoopGroup-1-2] WARN  c.m.m.c.m.JHipsterMetricsEndpoint - Missing name tag for metric cache.puts
16:53:25.957 [default-nioEventLoopGroup-1-2] WARN  c.m.m.c.m.JHipsterMetricsEndpoint - Missing name tag for metric cache.evictions
16:53:25.958 [default-nioEventLoopGroup-1-2] WARN  c.m.m.c.m.JHipsterMetricsEndpoint - Missing name tag for metric cache.removals
16:53:25.959 [default-nioEventLoopGroup-1-2] WARN  c.m.m.c.m.JHipsterMetricsEndpoint - Missing name tag for metric cache.removals
16:53:25.959 [default-nioEventLoopGroup-1-2] WARN  c.m.m.c.m.JHipsterMetricsEndpoint - Missing name tag for metric cache.removals
16:53:25.959 [default-nioEventLoopGroup-1-2] WARN  c.m.m.c.m.JHipsterMetricsEndpoint - Missing name tag for metric cache.removals
Reproduce the error

Create an app with jhipster jdl default --skip-jhipster-dependencies.

Related issues
Suggest a Fix
JHipster configuration, a .yo-rc.json file generated in the root folder
.yo-rc.json file
{
  "generator-jhipster": {
    "applicationIndex": 0,
    "backendType": "Micronaut",
    "baseName": "jhipster",
    "blueprints": [
      {
        "name": "generator-jhipster-micronaut",
        "version": "3.0.0"
      }
    ],
    "creationTimestamp": 1708559039230,
    "devServerPort": 4200,
    "entities": [],
    "jhipsterVersion": "8.1.0",
    "languages": [
      "en"
    ],
    "nativeLanguage": "en",
    "prodDatabaseType": "postgresql",
    "skipJhipsterDependencies": true
  }
}
Environment and Tools

openjdk version "21.0.2" 2024-01-16 LTS OpenJDK Runtime Environment Temurin-21.0.2+13 (build 21.0.2+13-LTS) OpenJDK 64-Bit Server VM Temurin-21.0.2+13 (build 21.0.2+13-LTS, mixed mode)

git version 2.39.3 (Apple Git-145)

node: v20.11.0 npm: 10.4.0

Docker version 25.0.3, build 4debf41

JDL for the Entity configuration(s) entityName.json files generated in the .jhipster directory
JDL entity definitions

mraible commented 3 weeks ago

Blocked from reproducing by https://github.com/jhipster/generator-jhipster-micronaut/issues/418.

mraible commented 3 weeks ago

Still exists in main branch.