Coder Social home page Coder Social logo

epimetheus's People

Contributors

alexcardell avatar arixmkii avatar awethon avatar benivf avatar bpholt avatar christopherdavenport avatar dpevunov-cp avatar isomarcte avatar mergify[bot] avatar oddkristensen avatar pjurczenko avatar scala-steward avatar sideeffffect avatar ybasket 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  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

Watchers

 avatar  avatar  avatar  avatar  avatar

epimetheus's Issues

Precision truncation possibly not intended on `timed` with Seconds

https://github.com/ChristopherDavenport/epimetheus/blob/efc69b90ff6f04dbdfa84504d67fecaa8c1d70a6/core/src/main/scala/io/chrisdavenport/epimetheus/Histogram.scala#L54-L57

In the function timed more specifically timedSeconds we're currently doing integer division in the case of SECONDS and truncating valuable information that would be good for the metric.

For example if start and end were: 1000 ms in and 3300 ms past then we'd have a difference of 2.3 seconds but with the current implementation we would be 1s in and then 3s in which would be 2.0 in the end result as it is currently coded.

Something like the below would fix the truncation of data problem for the default sized buckets (seconds) at least.

def timedFixed[E, F[_]: Bracket[?[_], E]: Clock, A](h: Histogram[F], fa: F[A]): F[A] =
    Bracket[F, E].bracket(Clock[F].monotonic(NANOSECONDS))
    {_: Long => fa}
    {start: Long => Clock[F].monotonic(NANOSECONDS).flatMap(now => h.observe(io.prometheus.client.SimpleTimer. elapsedSecondsFromNanos(start, now))}

Microsite is broken

Hi,

Documentation resources mentioned in Readme is broken
https://christopherdavenport.github.io/epimetheus

404
File not found

The site configured at this address does not contain the requested file.

If this is your site, make sure that the filename case matches the URL.
For root URLs (like http://example.com/) you must provide an index.html file.

Read the full documentation for more information about using GitHub Pages

Fix Site

Switching to Laika has left me with a weird title approach and it looks bad.

Would appreciate the help fixing those up.

Provide cats-effect 3 builds

cats-effect 3.0 has reached RC state. Would be nice to provide -M or -RC build for this version. As it will contain breaking changes, I believe there will be a need to bump major version as well and adjust CI to build and publish from multiple branches.

I created a version, which builds against CE3 with this commit arixmkii@ae04eaf but it doesn't address CI and versioning in any way.

It also addresses #152 without losing ability to use different units for both Summary and Histogram.

I can provide changes as PR, when there will be separate branches for ce2 and ce3 (up to you, which one should be main for now), because obviously ce2 will be here to stay for some time.

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.