Skip to content

Commit

Permalink
edit
Browse files Browse the repository at this point in the history
  • Loading branch information
usfalami committed Jun 30, 2023
1 parent 983a2fc commit 5015808
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/main/java/org/usf/traceapi/core/ApplicationInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ public final class ApplicationInfo {

private final String name;
private final String version; // maven, NPM, ..
private final String address; //IP address
private final String env; //dev, rec, prod, ...
private final String os; //operating system : Window, Linux, ...
private final String re; //runtime environment : JAVA, JS, PHP, Browser, Postman ...
private final String address; //IP address

}
9 changes: 4 additions & 5 deletions src/main/java/org/usf/traceapi/core/TraceConfiguration.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,13 @@
public class TraceConfiguration implements WebMvcConfigurer {

public TraceConfiguration(Environment env) {
var springApp = "spring.application.";
application = new ApplicationInfo(
env.getProperty(springApp + "name"),
env.getProperty(springApp + "version"),
env.getProperty("spring.application.name"),
env.getProperty("spring.application.version"),
hostAddress(),
join(",", env.getActiveProfiles()),
getProperty("os.name"),
"java " + getProperty("java.version"),
hostAddress());
"java " + getProperty("java.version"));
}

@Override
Expand Down

0 comments on commit 5015808

Please sign in to comment.