Skip to content

Commit ddff5f3

Browse files
committed
renamed metric label
1 parent 5e1e63c commit ddff5f3

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

client/src/main/java/io/split/client/SplitClientImpl.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@
3636
public final class SplitClientImpl implements SplitClient {
3737
public static final SplitResult SPLIT_RESULT_CONTROL = new SplitResult(Treatments.CONTROL, null);
3838

39-
private static final String GET_TREATMENT_LABEL = "sdk.getTreatment";
40-
private static final String GET_TREATMENT_WITH_CONFIG_LABEL = "sdk.getTreatmentWithConfig";
39+
private static final String METRIC_GET_TREATMENT = "sdk.getTreatment";
40+
private static final String METRIC_GET_TREATMENT_WITH_CONFIG = "sdk.getTreatmentWithConfig";
4141

4242
private static final Logger _log = LoggerFactory.getLogger(SplitClientImpl.class);
4343

@@ -75,27 +75,27 @@ public String getTreatment(String key, String split) {
7575

7676
@Override
7777
public String getTreatment(String key, String split, Map<String, Object> attributes) {
78-
return getTreatmentWithConfigInternal(GET_TREATMENT_LABEL, key, null, split, attributes, "getTreatment").treatment();
78+
return getTreatmentWithConfigInternal(METRIC_GET_TREATMENT, key, null, split, attributes, "getTreatment").treatment();
7979
}
8080

8181
@Override
8282
public String getTreatment(Key key, String split, Map<String, Object> attributes) {
83-
return getTreatmentWithConfigInternal(GET_TREATMENT_LABEL, key.matchingKey(), key.bucketingKey(), split, attributes, "getTreatment").treatment();
83+
return getTreatmentWithConfigInternal(METRIC_GET_TREATMENT, key.matchingKey(), key.bucketingKey(), split, attributes, "getTreatment").treatment();
8484
}
8585

8686
@Override
8787
public SplitResult getTreatmentWithConfig(String key, String split) {
88-
return getTreatmentWithConfigInternal(GET_TREATMENT_WITH_CONFIG_LABEL, key, null, split, Collections.<String, Object>emptyMap(), "getTreatmentWithConfig");
88+
return getTreatmentWithConfigInternal(METRIC_GET_TREATMENT_WITH_CONFIG, key, null, split, Collections.<String, Object>emptyMap(), "getTreatmentWithConfig");
8989
}
9090

9191
@Override
9292
public SplitResult getTreatmentWithConfig(String key, String split, Map<String, Object> attributes) {
93-
return getTreatmentWithConfigInternal(GET_TREATMENT_WITH_CONFIG_LABEL, key, null, split, attributes, "getTreatmentWithConfig");
93+
return getTreatmentWithConfigInternal(METRIC_GET_TREATMENT_WITH_CONFIG, key, null, split, attributes, "getTreatmentWithConfig");
9494
}
9595

9696
@Override
9797
public SplitResult getTreatmentWithConfig(Key key, String split, Map<String, Object> attributes) {
98-
return getTreatmentWithConfigInternal(GET_TREATMENT_WITH_CONFIG_LABEL, key.matchingKey(), key.bucketingKey(), split, attributes, "getTreatmentWithConfig");
98+
return getTreatmentWithConfigInternal(METRIC_GET_TREATMENT_WITH_CONFIG, key.matchingKey(), key.bucketingKey(), split, attributes, "getTreatmentWithConfig");
9999
}
100100

101101
@Override

0 commit comments

Comments
 (0)