You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: internal-api/src/main/java/datadog/trace/util/TraceUtils.java
+23-4Lines changed: 23 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -88,17 +88,34 @@ public static boolean isValidStatusCode(final int httpStatusCode) {
88
88
// spotless:off
89
89
90
90
/**
91
-
* Normalizes a tag value:
91
+
* Normalizes a full tag (key:value):
92
92
* - Only letters, digits, ":", ".", "-", "_" and "/" are allowed.
93
93
* - If a non-valid char is found, it's replaced with "_". If it's the last char, it's removed.
94
94
* - It must start with a letter or ":".
95
95
* - It applies lower case.
96
96
*
97
97
* @param tag value
98
-
* @return normalized tag value
98
+
* @return normalized full tag
99
+
* See https://docs.datadoghq.com/getting_started/tagging/
99
100
*/
100
101
// spotless:on
101
102
publicstaticStringnormalizeTag(finalStringtag) {
103
+
returndoNormalize(tag, true);
104
+
}
105
+
106
+
/**
107
+
* Normalizes a tag value according to the datadog tag conventions - Only letters, digits, ":",
108
+
* ".", "-", "_" and "/" are allowed. - If a non-valid char is found, it's replaced with "_". If
109
+
* it's the last char, it's removed. - It applies lower case.
110
+
*
111
+
* @param tagValue the tag value
112
+
* @return normalized tag value See https://docs.datadoghq.com/getting_started/tagging/
0 commit comments