Skip to content

Commit 679c273

Browse files
committed
[STATS] get app name from app.name rather than restx.appName
app.name is what is set in generated settings when using app new. restx.appName seems to be used very infrequently, currently we only have 4 different appNameHash collected on 1000+ hosts.
1 parent b6eb1b7 commit 679c273

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

restx-stats-admin/src/main/java/restx/stats/RestxStatsCollector.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public class RestxStatsCollector implements AutoStartable, AutoCloseable {
7979
private volatile long lastShareTime;
8080

8181
public RestxStatsCollector(
82-
@Named("restx.appName") Optional<String> appName,
82+
@Named("app.name") Optional<String> appName,
8383
@Named("restx.server.type") Optional<String> serverType,
8484
@Named("restx.server.port") Optional<String> serverPort,
8585
AppSettings appSettings, RestxStatsSettings statsSettings,

0 commit comments

Comments
 (0)