Skip to content

Commit 1a32bbb

Browse files
authored
Exclude safeParse errors from telemetry (#9770)
1 parent 4ddf06e commit 1a32bbb

File tree

1 file changed

+3
-1
lines changed
  • internal-api/src/main/java/datadog/trace/bootstrap/instrumentation/api

1 file changed

+3
-1
lines changed

internal-api/src/main/java/datadog/trace/bootstrap/instrumentation/api/URIUtils.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
package datadog.trace.bootstrap.instrumentation.api;
22

3+
import static datadog.trace.api.telemetry.LogCollector.EXCLUDE_TELEMETRY;
4+
35
import datadog.trace.api.iast.util.PropagationUtils;
46
import java.net.MalformedURLException;
57
import java.net.URI;
@@ -129,7 +131,7 @@ public static URI safeParse(final String unparsed) {
129131
try {
130132
return PropagationUtils.onUriCreate(unparsed, URI.create(unparsed));
131133
} catch (final IllegalArgumentException exception) {
132-
LOGGER.debug("Unable to parse request uri {}", unparsed, exception);
134+
LOGGER.debug(EXCLUDE_TELEMETRY, "Unable to parse request uri {}", unparsed, exception);
133135
return null;
134136
}
135137
}

0 commit comments

Comments
 (0)