Giter Club home page Giter Club logo

hapi-statsd's People

Contributors

bitdeli-chef avatar chriswiggins avatar clarkie avatar dependabot[bot] avatar diego-deriv avatar dynajoe avatar fhemberger avatar geek avatar jmlue42 avatar jordanhood avatar kkemple avatar mac- avatar nabsul avatar offlinehacker avatar sinisterminister avatar superdav42 avatar yelworc avatar

Stargazers

 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

Watchers

 avatar  avatar

hapi-statsd's Issues

replace the cache with timing information on the request

hey there,

i was just going through the code, because i want to use this plugin. I'm just wondering if there's a reason you're using a cache for keeping track of the request ids ? looking at the latest hapi api, each request contains already a timestamp for when it came into the system. So to get the startDate one can just use request.info.received, which would make this cache object obsolete, the code simpler and the memory-footprint lower. if you're confident with that i would like to add a PR for that.

he package hapi does not satisfy its siblings' peerDependencies requirements!

When I try to add 'hapi-statsd' i get the error below. Looks like it requires Hapi.js 6.9.0 and current version is 6.11.0. Is it possible to adjust the version to e.g. "6.x.x" ?

npm ERR! peerinvalid The package hapi does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer [email protected] wants hapi@>=2.x.x
npm ERR! peerinvalid Peer [email protected] wants hapi@>=2.x.x
npm ERR! peerinvalid Peer [email protected] wants hapi@>=2.x.x
npm ERR! peerinvalid Peer [email protected] wants hapi@>= 2.x < 7.x
npm ERR! peerinvalid Peer [email protected] wants [email protected]

Hapi 17

Any plan to port this to hapi 17?

Filtering statistics and endpoints

First of all, great work on this plugin. It works flawlessly and does a great job.

We are looking to use it and need to find a way to limit which endpoints we generate statistics on. We need a way to define which endpoints get statsd metrics, and which status codes. I have several questions about this:

  • Are there any plans to add such a feature?
  • If not, do you recommend any other implementations?
  • If not, and if we fork and develop such options, would you be interested in reviewing and merging them into this plugin?

We're asking these questions to decide whether we should attempt to contribute to this code base, or go with our own implementation.

Thanks!

timing information not getting logged correctly

statsdClient.timing(statName, startDate);

Shouldn't that be something like:
statsdClient.timing(statName, new Date() - startDate);

Otherwise you are just logging the start date and not the actual time it took to execute.

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.