Code Monkey home page Code Monkey logo

Comments (3)

LeonHuston avatar LeonHuston commented on June 10, 2024

Hey there, if you supply a header in your request with the key ,values being X-Bramble-Debug: timing it will return you the timing values in the extensions field of the response.

You can see what other values you can request with that header here

from bramble.

anar-khalilov avatar anar-khalilov commented on June 10, 2024

Yes, we set this header to "all".

Can you provide a concrete example on how to access these values not from the package but from outside as a consumer of this package? We tried many different methods to no avail.

If there is no such way, could you provide one?

from bramble.

pkqk avatar pkqk commented on June 10, 2024

Hi @anar-khalilov, I'm not sure what you mean by outside the package?

The timings are in the JSON body of the HTTP response.

{
    "data": "",
    "extensions": {
        "plan": "",
        "timings": {
            "execution": "194ms",
            "format": "0s",
            "merge": "0s"
        }
    }
}

So if your HTTP client lets you inspect the response at a higher level than the data key then they are there. It doesn't currently break the timings down by service or field though.

from bramble.

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.