Skip to content

Commit

Permalink
Removed unnecessary config-mp dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
urbim committed Jan 30, 2019
1 parent 2bb852a commit 1d9903f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
5 changes: 0 additions & 5 deletions core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,6 @@
<artifactId>kumuluzee-cdi-weld</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.kumuluz.ee.config</groupId>
<artifactId>kumuluzee-config-mp</artifactId>
<version>${kumuluzee-config-mp.version}</version>
</dependency>

<dependency>
<groupId>org.eclipse.microprofile.metrics</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
*/
package com.kumuluz.ee.metrics.api;

import com.kumuluz.ee.configuration.utils.ConfigurationUtil;
import com.kumuluz.ee.metrics.utils.ServiceConfigInfo;
import org.eclipse.microprofile.config.ConfigProvider;
import org.eclipse.microprofile.metrics.*;
import org.eclipse.microprofile.metrics.Timer;
import org.eclipse.microprofile.metrics.*;

import java.util.*;

Expand Down Expand Up @@ -68,8 +68,7 @@ public <T extends Metric> T register(Metadata metadata, T t) throws IllegalArgum
metadata.addTag("instanceId=" + configInfo.getInstanceId());
}

Optional<String> tagsFromConfig = ConfigProvider.getConfig()
.getOptionalValue("MP_METRICS_TAGS", String.class);
Optional<String> tagsFromConfig = ConfigurationUtil.getInstance().get("MP_METRICS_TAGS");
tagsFromConfig.ifPresent(metadata::addTags);

try {
Expand Down

0 comments on commit 1d9903f

Please sign in to comment.