wu-sheng commented on a change in pull request #6608:
URL: https://github.com/apache/skywalking/pull/6608#discussion_r601100202
##########
File path:
oap-server/analyzer/meter-analyzer/src/main/java/org/apache/skywalking/oap/meter/analyzer/dsl/DSL.java
##########
@@ -37,6 +38,9 @@
public static Expression parse(final String expression) {
CompilerConfiguration cc = new CompilerConfiguration();
cc.setScriptBaseClass(DelegatingScript.class.getName());
+ ImportCustomizer icz = new ImportCustomizer();
+ icz.addImport("K8sRetagType",
"org.apache.skywalking.oap.meter.analyzer.dsl.SampleFamily.K8sRetagType");
Review comment:
```suggestion
icz.addImport("K8sRetagType", K8sRetagType.class.getName());
```
This should be safer for potential refactor.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]