Skip to content

Commit

Permalink
Set globalTags to an empty map if it's not possible to read them usin…
Browse files Browse the repository at this point in the history
…g MP Config
  • Loading branch information
jmartisk committed Jun 15, 2021
1 parent 0a7d8ff commit 3067fc0
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ public JsonExporter() {
.parseGlobalTags(config.getOptionalValue("mp.metrics.tags", String.class).orElse(""));
} catch (IllegalStateException | ExceptionInInitializerError | NoClassDefFoundError t) {
// MP Config implementation is probably not available
globalTags = Collections.emptyMap();
}
}

Expand Down

0 comments on commit 3067fc0

Please sign in to comment.