Code Monkey home page Code Monkey logo

Comments (7)

robinst avatar robinst commented on July 17, 2024

to allow adding these myself by implementing Metric (if I read the sources correctly)

Computer says no:

error: module `types` is private
 --> src/handler.rs:9:5
  |
9 | use cadence::types::Metric;
  |     ^^^^^^^^^^^^^^^^^^^^^^

from cadence.

56quarters avatar 56quarters commented on July 17, 2024

Hi @robinst

I'm only vaguely familiar with Datadog and their extensions to Statsd. Histograms look useful and they would probably be very straightforward to add support for. I can open a PR and cc you there if that works for you. Thanks!

from cadence.

robinst avatar robinst commented on July 17, 2024

Sounds good!

Histograms also in the spec you linked in the code, so maybe more implementations support it: https://github.com/b/statsd_spec/blob/master/README.md#histograms

Another useful thing is tags, which allow you to attach more information to a metric, see here: http://docs.datadoghq.com/guides/dogstatsd/#tags

The format is described later in the page under "Datagram Format".

from cadence.

56quarters avatar 56quarters commented on July 17, 2024

Cool.

I'll open another issue for tag support since they'll be a bit more work and I'd like to think about how I'd implement them. Thanks again!

from cadence.

56quarters avatar 56quarters commented on July 17, 2024

PR for histogram support #42. The docs related to the new trait are my interpretation of the Datadog docs as well as the Statsd spec. Let me know if I've gotten anything wrong.

from cadence.

56quarters avatar 56quarters commented on July 17, 2024

Thanks @robinst! I'll probably end up cutting version 0.9.0 with this change in the next few weeks.

from cadence.

robinst avatar robinst commented on July 17, 2024

Cool, thanks! No rush by the way, I'll check out the release in the new year.

from cadence.

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.