Coder Social home page Coder Social logo

链路报错 about kitex-examples HOT 5 CLOSED

cloudwego avatar cloudwego commented on July 20, 2024
链路报错

from kitex-examples.

Comments (5)

BytedanceRPC avatar BytedanceRPC commented on July 20, 2024

方便提供下你使用的cloudwego以及kitex-contrib相关依赖库的版本吗。我通过你提供的代码无法复现。(sender URL 来自阿里云官网,不确定是否有影响)。
image

from kitex-examples.

nihaibao avatar nihaibao commented on July 20, 2024

image
sender URL 没有影响,自定义tracer可以正常上报链路日志

from kitex-examples.

lifang218c avatar lifang218c commented on July 20, 2024

Go调用,在client端,也使用initjeager不报错。可以正常执行和正常数据上报
php 调用的时候,会报错。 因为追踪代码发现是这个错误:github.com/kitex-contrib/tracer-opentracing/opentracing.go。 33行。调试发现,这行:

readSpan := c.newEventSpan("read", st, stats.ReadStart, stats.ReadFinish, span.Context()) readSpan.SetTag("recv_size", st.RecvSize())

这个readSpan是空的

from kitex-examples.

BytedanceRPC avatar BytedanceRPC commented on July 20, 2024

@nihaibao @lifang218c 确认问题了,当调用streaming方法时,因为是异步读写的,没有 Read 和 Write 相关 event 。在 github.com/kitex-contrib/[email protected] 上修复了这个问题,麻烦更新一下依赖。

from kitex-examples.

lifang218c avatar lifang218c commented on July 20, 2024

强! 挺速度的呢? 正在发愁怎么解决,本来想通过中间件来弄这个事,没想到这么快就修复了。 @BytedanceRPC 这个event追踪代码发现,需要调用那个提供的record 方法来生成对应的evenmap才能再次使用。。 然后这个eventmap 有12种类型。如果是php调用 只会 生成 5,1,2,6 四种事件。但是go调用的话,会依次生成5,7,8,1,2,11,12,6。

等下看看你修复的代码,感谢🙏

from kitex-examples.

Related Issues (20)

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.