Replies: 2 comments 6 replies
-
If you're only reporting a single datapoint a day, I'd say that OTel metrics might be overkill for what you're trying to measure. But, if you really want to use OTel metrics for this, how about something simple like an UpDownCounter? |
Beta Was this translation helpful? Give feedback.
-
Histograms are used when the distribution of recorded measurements is of interest. For example, you'd use a histogram to record the response time of an http server fulfilling requests, since its interesting to not only see how many requests fulfilled, but also the distribution of time so you can compute response time percentiles. In your case, it appears you're only interested in the how many orders were created. If this is the case, a |
Beta Was this translation helpful? Give feedback.
-
Hello,
Suppose you have an e-commerce platform and you want to collect statistics about how many ORDERS are created IN A CERTAIN PERIOD OF TIME (ex. every day):
Is it right to use a "Histogram" as explained here ?
When the telemetry data should be recorded? I have thought to implement a scheduled process which extracts the stats every day at midnight and uses the DoubleHistogram.record() in order to send the telemetry data. Is this the right approach?
Thank you
Beta Was this translation helpful? Give feedback.
All reactions