Coder Social home page Coder Social logo

traceId about aop-log HOT 4 CLOSED

ealenxie avatar ealenxie commented on July 28, 2024
traceId

from aop-log.

Comments (4)

EalenXie avatar EalenXie commented on July 28, 2024

暂没有思路支持这个,因为方法参数,入参出参是基于AOP实现的,没有对方法内的分布式调用做拦截。

from aop-log.

89270966 avatar 89270966 commented on July 28, 2024

LogData 没有序列化,直接转json报错。
还有获取参数列表的时候,org.apache.catalina.connector.RequestFacade@18b8f282,这个也不能转字符串

from aop-log.

EalenXie avatar EalenXie commented on July 28, 2024

是你的参数本身不支持序列化吧,LogData本身也不实现序列化的,入参出参皆为Object是为了兼容各种复杂对象。我的观点是复杂对象的处理的方式应该交由使用者自己在收集器中怎么去决定,所以没有对复杂的,不支持序列化的对象进行处理。

from aop-log.

89270966 avatar 89270966 commented on July 28, 2024

谢谢!
public static Object getArgs(String[] parameterNames, Object[] args) {
Object target;
if (args.length == 1) target = args[0];
else target = args;
不看代码外面通过object接受时候不知道是数组,看完源码后,转了数组,用自己的对象来拷贝属性,目前好使了。

from aop-log.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.