|
9 | 9 |
|
10 | 10 | import com.google.errorprone.annotations.CanIgnoreReturnValue; |
11 | 11 | import io.opentelemetry.api.OpenTelemetry; |
12 | | -import io.opentelemetry.instrumentation.jmx.engine.MetricConfiguration; |
13 | | -import io.opentelemetry.instrumentation.jmx.yaml.RuleParser; |
| 12 | +import io.opentelemetry.instrumentation.jmx.internal.engine.MetricConfiguration; |
| 13 | +import io.opentelemetry.instrumentation.jmx.internal.yaml.RuleParser; |
14 | 14 | import java.io.IOException; |
15 | 15 | import java.io.InputStream; |
16 | 16 | import java.nio.file.Files; |
@@ -54,8 +54,9 @@ public JmxTelemetryBuilder beanDiscoveryDelay(Duration delay) { |
54 | 54 | * @param target name of target in /jmx/rules/{target}.yaml classpath resource |
55 | 55 | * @return builder instance |
56 | 56 | * @throws IllegalArgumentException when classpath resource does not exist or can't be parsed |
| 57 | + * @deprecated use {@link #addRules(InputStream)} instead |
57 | 58 | */ |
58 | | - // TODO: deprecate this method after 2.23.0 release in favor of addRules |
| 59 | + @Deprecated |
59 | 60 | @CanIgnoreReturnValue |
60 | 61 | public JmxTelemetryBuilder addClassPathRules(String target) { |
61 | 62 | String resourcePath = String.format("jmx/rules/%s.yaml", target); |
@@ -111,8 +112,9 @@ public JmxTelemetryBuilder addRules(Path path) { |
111 | 112 | * @param path path to yaml file |
112 | 113 | * @return builder instance |
113 | 114 | * @throws IllegalArgumentException when classpath resource does not exist or can't be parsed |
| 115 | + * @deprecated use {@link #addRules(Path)} instead |
114 | 116 | */ |
115 | | - // TODO: deprecate this method after 2.23.0 release in favor of addRules |
| 117 | + @Deprecated |
116 | 118 | @CanIgnoreReturnValue |
117 | 119 | public JmxTelemetryBuilder addCustomRules(Path path) { |
118 | 120 | return addRules(path); |
|
0 commit comments