Giter Club home page Giter Club logo

Comments (9)

pierrre avatar pierrre commented on July 30, 2024

Same issue fore the "enabled" config.
It's not copied properly.

from dd-trace-go.

gbbr avatar gbbr commented on July 30, 2024

I can see how this can be confusing. The integrations (contrib/*) are not yet migrated over to use OpenTracing. We are planning to do this for 0.7.0, which will be all OpenTracing compatible. Until then, please hold tight 😊

from dd-trace-go.

pierrre avatar pierrre commented on July 30, 2024

OK I understand, thanks.

from dd-trace-go.

pierrre avatar pierrre commented on July 30, 2024

The integrations (contrib/*) are not yet migrated over to use OpenTracing

Indeed it doesn't work currently.
In my code, I do this:

  • create a root span with the gorilla/mux integration
  • create new child span from request's context with open tracing

The result:

If I understand correctly, the issue is that the span types are not compatible, and the parent span is not found from context (different key probably).

I see several solutions for me:

  • wait for the integration migration (when will it be available ?)
  • build my own integration compatible with opentracing
  • contribute to the existing integration (it should be very similar to my own code)

I'd like to contribute, but I don't know what are your plans.

from dd-trace-go.

pierrre avatar pierrre commented on July 30, 2024

PS: if I use only the opentracing span as root, there is no issue.

from dd-trace-go.

gbbr avatar gbbr commented on July 30, 2024

wait for the integration migration (when will it be available ?)

I am working on this as we speak and is my main priority at the moment. We plan to release this with 0.7.0 once we dog food it internally. You are welcome to help with that if you want, at your own risk :-)

contribute to the existing integration (it should be very similar to my own code)

I would not advise to do this now, as it will result in terrible merge conflicts.

I'd like to contribute, but I don't know what are your plans.

I would be very happy to have you as a contributor. I think that after we finish this piece of work, contributing to this library should be much easier and straight-forward. I am also glad to hear that you have this intention, your help would be most welcomed.

The best thing you can do for now is to be patient and give us the time to do this. I reckon in a couple of weeks it will be ready. If this is urgent for you, of course you can build your own integration in the mean time. Contributing now is not a very good time because this switch affects the entire codebase.

I am happy to answer any more questions you might have. You are also welcome to reach me on our public Slack if you want.

from dd-trace-go.

pierrre avatar pierrre commented on July 30, 2024

quick and dirty hack https://gist.github.com/pierrre/d6f86351ce384a30b548c8ef2ecb6ebf

from dd-trace-go.

gbbr avatar gbbr commented on July 30, 2024

@pierrre I will close this as a duplicate of #175 - I hope you don't mind. If that issue doesn't cover it or if this is for something else, then please feel free to re-open.

from dd-trace-go.

pierrre avatar pierrre commented on July 30, 2024

ok, no problem

from dd-trace-go.

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.