Git Product home page Git Product logo

hopper's Introduction

Hopper

A very simple trace-hop-finder*

* a bunny term

Usage

Help

❯ ./hopper 
[-i|--input] is required
usage: print [-h|--help] -i|--input "<value>" [-t|--threshold <integer>]
             [-s|--trace "<value>" [-s|--trace "<value>" ...]]
             [-f|--find-document]

             Prints provided string to stdout

Arguments:

  -h  --help           Print help information
  -i  --input          The input json file
  -t  --threshold      The threshold on which to alert. Default: 1000
  -s  --trace          A list of traces. If not specified, all traces will be
                       considered.
  -f  --find-document  Flag to make the parser search for a document in the
                       line. Helpful for when there is a prefix to the document
                       in line.. Default: false


  • input

A valid file path to a file containing json, 1 document per line

  • threshold

The threshold in millisecond applied to find hops

  • trace

A list of IDs to look for and group together. Expects a field called 'trace_id'

What it does

Hopper will read your input and sort logs based on traces and time. It will then find documents that are logged and their time delta is bigger than the given threshold.

Hopper's expectations:

  • trace_id must be a root-level document field and a string
  • time must be a root-level document field and a string
  • time is formatted to correspond to RFC3339
  • input points to a file containing 1 json document per line.

What I use it for

Sometimes calls are slow. And looking at each log line and head-diffing the time is annoying. This somewhat helps that task :)

hopper's People

Stargazers

Cynthia Lee avatar

Watchers

Artur avatar

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.