GithubHelp home page GithubHelp logo

obs's Introduction

Obs

An observer.

Goals

  • Plugged in via a WSGI middleware or a basic command (which would just look for the middleware).
  • Local instrumentation for various network calls.
  • Ability to capture data from instrumented code when an AJAX call (or in theory, a remote RPC) happens.
  • Pluggable remote storage for instrumented data (in-memory, memcache, redis).

Future

  • Deeper introspection with things such as memory and other machine data.

Instrument Spec

# Create a basic Hook which is responsible for
# recording the description of calls
class RedisHook(Hook):
    def on_call(self, instrument, *args, **kwargs):
        with instrument.record('description'):
            self.execute(*args, **kwargs)


# Create an instrument which is responsible for
# describing hooks
class RedisInstrument(Instrument):
    name = 'redis'

    def get_hooks(self):
        return [
            RedisHook('redis.Client.execute'),
        ]

# Wrap your application
obs = Obs(application)

# register the Instrument with the Obs instance
obs.register(RedisInstrument)

obs's People

Contributors

dcramer avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

isabella232

obs's Issues

Flush out spec

I added some things to the README with goals and basic suggested implementation. There's also some example interface implementations. We should consider if there's any serious issues with these.

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.