Skip to content

Commit 5a0a69a

Browse files
committed
delete unused code
1 parent 77f9bcc commit 5a0a69a

File tree

2 files changed

+0
-87
lines changed

2 files changed

+0
-87
lines changed

javaagent-tooling/src/main/java/io/opentelemetry/javaagent/tooling/instrumentation/http/RegexUrlTemplateCustomizerInitializer.java

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -52,30 +52,6 @@ public void beforeAgent(AutoConfiguredOpenTelemetrySdk autoConfiguredOpenTelemet
5252
});
5353
}
5454

55-
// visible for testing
56-
static void parse(String rules) {
57-
// We are expecting a semicolon-separated list of rules in the form
58-
// pattern,replacement[,override]
59-
// Where pattern is a regex, replacement is the url template to use when the pattern matches,
60-
// override is an optional boolean (default false) indicating whether this rule should override
61-
// an existing url template. The pattern should match the entire url.
62-
for (String rule : rules.split(";")) {
63-
String[] parts = rule.split(",");
64-
if (parts.length != 2 && parts.length != 3) {
65-
logger.log(
66-
WARNING, "Invalid http client url template customization rule \"" + rule + "\".");
67-
continue;
68-
}
69-
70-
Pattern pattern = toPattern(parts[0].trim());
71-
if (pattern == null) {
72-
continue;
73-
}
74-
UrlTemplateRules.addRule(
75-
pattern, parts[1].trim(), parts.length == 3 && Boolean.parseBoolean(parts[2].trim()));
76-
}
77-
}
78-
7955
private static Pattern toPattern(String patternString) {
8056
try {
8157
// ensure that pattern matches the whole url

javaagent-tooling/src/test/java/io/opentelemetry/javaagent/tooling/instrumentation/http/RegexUrlTemplateParserTest.java

Lines changed: 0 additions & 63 deletions
This file was deleted.

0 commit comments

Comments
 (0)