Skip to content

Commit

Permalink
Merge pull request #1112 from saxond/main
Browse files Browse the repository at this point in the history
Metric names should not start with a forward slash
  • Loading branch information
meiao committed Jan 4, 2023
2 parents 1019c73 + afaff2f commit 3620f21
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public abstract class Cache<K, V> {
private static final String GET_AND_REPLACE = "getAndReplace";

@NewField
private static final String METRIC_NAME = "/Java/JCACHE";
private static final String METRIC_NAME = "Java/JCACHE";

@Trace(excludeFromTransactionTrace = true, metricName = METRIC_NAME + "/" + GET, leaf = true)
public abstract V get(K key);
Expand Down

0 comments on commit 3620f21

Please sign in to comment.