Giter Site home page Giter Site logo

Comments (4)

clutchski avatar clutchski commented on May 17, 2024

@jontonsoup we can add connect to the tracing (though often times thye happen outside the scope of a request). I don't see tracing adding 15 ms of setup overhead, but can work through it with you.

can you take a cProfile of your program startup?

from dd-trace-py.

jontonsoup avatar jontonsoup commented on May 17, 2024

@clutchski We already moved off dd-trace because the threading support just wasn't where we need it to be.

That said, the larger issue was that connecting to the DB took 15ms and dd-trace did not report this-- could have been latency or something else (we ended up fixing it by moving connect out of the hot path), but we would have never known if we didn't install new relic.

The issue is that the slowdown was in the datadog patch function itself. Just bringing up that this might be an issue you want to consider in the general case.

from dd-trace-py.

thehesiod avatar thehesiod commented on May 17, 2024

should be pretty simple, I recently added something similar to my aiohttp client tracing PR. If this gets added make sure to also add to aiopg + asyncpg contrib modules. Also note the complexity of time to connect, vs time to get connection from pool (may have to wait for connection from pool to become available).

from dd-trace-py.

brettlangdon avatar brettlangdon commented on May 17, 2024

The problem I see with tracing the connect method is that it is most likely going to occur outside the context of a normal trace, meaning it'll be hard to correlate the effects of connect on any given trace.

Closing this ticket for now due to it's age, please feel free to re-open if needed.

from dd-trace-py.

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.