Giter Site home page Giter Site logo

Comments (6)

yurishkuro avatar yurishkuro commented on June 29, 2024

OpenTracing can be used with streaming / pub-sub. We have an internal project integrating tracing with Kafka, for example.

I think the main question is what you want to use tracing for in this scenario. For system analysis the lineage is often very important. With OpenTracing, we can correlate messages processed by different nodes in the pipeline and build an execution graph, similar to the call graph we get from regular RPC use case.

from specification.

OStrekalovsky avatar OStrekalovsky commented on June 29, 2024

And how we can handle situation when multiple services which consume the same source message want to finish started span which is single per message from source and generate differenct spans as result of processing whole trace? As i read, span (which is created when source message is created) may be closed only once. Or there exists another approach to create spans for that case?
It there an implementation of OpenTracing that can handle this case?

from specification.

yurishkuro avatar yurishkuro commented on June 29, 2024

In our model the span does not represent the time message spends in the queue. Spans are meant to be single-process, so there is a span, started and finished, in the producer that encapsulates the work of putting the message into the queue. Each consumer starts its own span upon reading the message, and those spans encapsulate the work done by each consumer. You can think of it in terms of AWS's lambda architecture - a handler function does not even need to know how it gets the message, from a queue or via an RPC call, therefore its OpenTracing instrumentation should not be different in each scenario either.

from specification.

OStrekalovsky avatar OStrekalovsky commented on June 29, 2024

So that "short life spans" should be linked only by means of "FollowsFrom" reference type?
And how can i calculate for example total time from creating source message to the end of processing? Only by traverse from the end to the beggining of the trace and calculate it by myself? Is there an existed tracing system that can handle that for me?

from specification.

yurishkuro avatar yurishkuro commented on June 29, 2024

FollowsFrom or yet another non-standard ref type. FollowsFrom ref type usually keeps the next span in the same trace. Sometimes you want the consumer to start a new trace, but link to the parent trace via some custom span ref type.

When spans are in the same trace, e.g. Zipkin will still display the total duration of the trace for you.

from specification.

mvpmvh avatar mvpmvh commented on June 29, 2024

Is there an example/snippet of tracing spans using FollowsFrom (or some other means) with published messages? I need a visual

from specification.

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.