File tree 1 file changed +3
-3
lines changed
powertools-tracing/src/main/java/software/amazon/lambda/powertools/tracing
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ public final class TracingUtils {
39
39
* @param value the value of the annotation
40
40
*/
41
41
public static void putAnnotation (String key , String value ) {
42
- if (!isValidateAnnotationKey (key )) {
42
+ if (!isValidAnnotationKey (key )) {
43
43
LOG .warn ("Ignoring annotation with unsupported characters in key: {}" , key );
44
44
return ;
45
45
}
@@ -54,7 +54,7 @@ public static void putAnnotation(String key, String value) {
54
54
* @param value the value of the annotation
55
55
*/
56
56
public static void putAnnotation (String key , Number value ) {
57
- if (!isValidateAnnotationKey (key )) {
57
+ if (!isValidAnnotationKey (key )) {
58
58
LOG .warn ("Ignoring annotation with unsupported characters in key: {}" , key );
59
59
return ;
60
60
}
@@ -68,7 +68,7 @@ public static void putAnnotation(String key, Number value) {
68
68
69
69
Annotation keys that are added that are invalid are ignored by x-ray.
70
70
**/
71
- private static boolean isValidateAnnotationKey (String key ) {
71
+ private static boolean isValidAnnotationKey (String key ) {
72
72
return key .matches ("^[a-zA-Z0-9_]+$" );
73
73
}
74
74
You can’t perform that action at this time.
0 commit comments