Git Product home page Git Product logo

Comments (3)

ananthakumaran avatar ananthakumaran commented on June 3, 2024

I am definitely interested in adding support for telemetry. I would be happy to accept contributions. It would be great if you could put together a spec that explains what events (including metadata, measurements) would be published, sort of like this

from memcachex.

stephanos avatar stephanos commented on June 3, 2024

Cool! Their documentation is really neat; I'll get a first draft out as soon as I can :)

from memcachex.

stephanos avatar stephanos commented on June 3, 2024

[:memcachex, :commands]

  • :elapsed_time (integer) the elapsed time that it took to send the pipeline to the server and get a reply. (a measurement)
  • :server the server the commands were sent to
  • :opts the options that were sent along with the command
  • :server_options the server options that were sent along with the command
  • :commands the commands sent to the server
  • :start_time the system time when the commands were issued

[:memcachex, :commands, :error]

  • :server the server the commands were sent to
  • :opts the options that were sent along with the command
  • :server_options the server options that were sent along with the command
  • :commands the commands sent to the server
  • :start_time the system time when the commands were issued
  • :reason the error reason.

[:memcachex, :connection]

  • :reconnected boolean to indicate this was a reconnection
  • :opts the connection options

[:memcachex, :connection, :error]

  • :opts the connection options
  • :reason the error reason.

Some notes:

  • I'm not intimately familiar with the codebase
  • I followed the Redix patterns, they seem to make sense
  • I'm not sure the connection should include the entire opts or just the host/port for privacy/security reasons
  • not sure I'd have a separate event for reconnection like Redix, seems overkill
  • I assumed that even with a single command, it'd be wrapped in a list (ie commands)

Let me know what you think!

from memcachex.

Related Issues (13)

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.