Giter VIP home page Giter VIP logo

Comments (6)

Symbianx avatar Symbianx commented on July 23, 2024 1

@ivantopo started a PR but I'm having issues with compiling the project. Any tips would be handy.

from kamon.

ivantopo avatar ivantopo commented on July 23, 2024

Hey @Symbianx,

The Kafka instrumentation is explicitly using a kctx header with Kamon's internal binary encoding for the entire context, including the Span, context tags, and any other context key that has a binary encoder configured. We never thought of using another format because we never had anything else other than Kamon on the other side consuming those messages 😂

Do you know if it is a common practice to use the w3c format in Kafka (or in general, message brokers)? If so, we could definitely look at adding a setting for this.

from kamon.

Symbianx avatar Symbianx commented on July 23, 2024

Thanks for the quick response @ivantopo!

We've been instrumenting java, python and node apps with the opentelemetry packages and they don't make a distinction between http or kafka. The same propagation method is used for both protocols, which by default is W3C.

I don't know what all other vendors are doing but NewRelic seems to be adopting the OpenTelemetry standards as well.

from kamon.

duxet avatar duxet commented on July 23, 2024

Do you know if it is a common practice to use the w3c format in Kafka (or in general, message brokers)? If so, we could definitely look at adding a setting for this.

I've been looking into this recently and yes, official OT Java instrumentation uses existing TextMapPropagator to inject trace context into Kafka record headers: https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/main/instrumentation/kafka/kafka-clients/kafka-clients-common/library/src/main/java/io/opentelemetry/instrumentation/kafka/internal/KafkaPropagation.java#L53

from kamon.

ivantopo avatar ivantopo commented on July 23, 2024

Thanks for the feedback folks!

@Symbianx going back to this:

If it's not available but wanted, I could make a PR for it.

I can say it is definitely not available, and wanted. Would love to see that PR!

from kamon.

ivantopo avatar ivantopo commented on July 23, 2024

Hey @Symbianx, I noticed you figured out how to fix the build. Feedback coming on the PR soon :)

from kamon.

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.