我正在尝试分析Spring Service方法:
import React from 'react';
import { MuiThemeProvider, createMuiTheme } from '@material-ui/core/styles';
import Button from '@material-ui/core/Button';
const theme = createMuiTheme({
palette: {
primary: { main: '#00FF00' }
});
function GreenButton() {
return (
<MuiThemeProvider theme={theme}>
<Button color="primary">This is green button</Button>
</MuiThemeProvider>
);
}
探查器未显示对slowMethod的调用:
然后我按照here的说明创建了一个stackify-apm.json文件:
//PersonService class
public Person findByCpfSimulatesLatency(String cpf) {
slowMethod();
return this.findByCPF(cpf);
}
private void slowMethod() {
//sleeps for 5 seconds
}
现在,探查器似乎可以检测到该功能,但将其标记为未跟踪的代码:
最后,我尝试使用通配符:
[{
"Class": "my.package.services.PersonService",
"Method": "slowMethod"
}]
现在,PersonService内部的所有内容都无法跟踪:
有什么办法可以实现这种行为?我有什么错误吗?