We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Please answer these questions before submitting your issue.
Which version of SkyWalking, OS and JRE?
Which company or project?
What happen? If possible, provide a way for reproducing the error. e.g. demo application, component version.
package com.example.demo.controller; @RestController public class TestController { @GetMapping("/") public String test(String p){ ActiveSpan.tag("orderId", UUID.randomUUID().toString()); ActiveSpan.info("日志信息"); return p; } } customize_enhance.xml :
package com.example.demo.controller; @RestController public class TestController { @GetMapping("/") public String test(String p){ ActiveSpan.tag("orderId", UUID.randomUUID().toString()); ActiveSpan.info("日志信息"); return p; } }
<?xml version="1.0" encoding="UTF-8"?> <enhanced> <class class_name="ccom.example.demo.controller.TestController"> <method method="test(java.lang.String)" static="false"> <tag key="tagTest">arg[0]</tag> <log key="log_1">arg[0]</log> </method> </class> </enhanced>
The text was updated successfully, but these errors were encountered:
Your example includes two cs in class_name="ccom.example.demo.controller.TestController". Are you sure you set it right?
c
class_name="ccom.example.demo.controller.TestController"
Sorry, something went wrong.
@wu-sheng sorry,in my project I used class_name="com.example.demo.controller.TestController".spring boot version is 2.2.0.RELEASE
Then I will suggest you do debug. You will know whether this class has been enhanced twice.
If it's not designed like this, I'll try to debug and find the problem
It should work. But I am not sure about the real case. This is not the design, but you can invest why.
No branches or pull requests
Please answer these questions before submitting your issue.
Question
Bug
Which version of SkyWalking, OS and JRE?
Which company or project?
What happen?
If possible, provide a way for reproducing the error. e.g. demo application, component version.
Requirement or improvement
package com.example.demo.controller; @RestController public class TestController { @GetMapping("/") public String test(String p){ ActiveSpan.tag("orderId", UUID.randomUUID().toString()); ActiveSpan.info("日志信息"); return p; } }
customize_enhance.xml :
<?xml version="1.0" encoding="UTF-8"?> <enhanced> <class class_name="ccom.example.demo.controller.TestController"> <method method="test(java.lang.String)" static="false"> <tag key="tagTest">arg[0]</tag> <log key="log_1">arg[0]</log> </method> </class> </enhanced>
The text was updated successfully, but these errors were encountered: