GithubHelp home page GithubHelp logo

Comments (2)

skrawcz avatar skrawcz commented on August 20, 2024

Update - #301 was merged with some features to help here. We should be able to get you to try something this week.

from burr.

skrawcz avatar skrawcz commented on August 20, 2024

@osiloke I assume you're using the SimpleTracer, right?

Do you want to try installing the latest burr (0.26.0) and trying the following:

Replace the following function body:

context_manager = self.active_spans.pop(node_name)
attributes = {}
if not success:
    attributes["error"] = "\n".join(traceback.format_exception(type(error), error, error.__traceback__))
else:
    attributes["result"] = result
context_manager.log_attributes(**attributes)
context_manager.__exit__(None, None, None)

That will then log things at the end of each Hamilton function (you can obviously just log errors for example). If you then go to the Burr UI you should be able to see it. Would love feedback - I have a few ideas on how to make it better and would love more opinions.

I get something like this:
Screen Shot 2024-08-05 at 11 48 50 PM

from burr.

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.