I need to emit latency metrics through m3. Is there a way to emit timer metrics or histogram metrics with weight?
Basically, we are emitting how long a single request takes. Sometimes, the request is batching. for example, a batch request with a size of 10, we will calculate how much a single request takes, and emit that 10 times. Wondering whether the api can directly let me set a weight for that timer or histogram, so it knows this is 10 data pointers rather than 1
right now, we can do something like
hist := scope.Histogram(...)
for i := 0; i < 10; i++ {
hist.Record(val)
}
wondering, whether the API can support something like
I need to emit latency metrics through m3. Is there a way to emit timer metrics or histogram metrics with weight?
Basically, we are emitting how long a single request takes. Sometimes, the request is batching. for example, a batch request with a size of 10, we will calculate how much a single request takes, and emit that 10 times. Wondering whether the api can directly let me set a weight for that timer or histogram, so it knows this is 10 data pointers rather than 1
right now, we can do something like
wondering, whether the API can support something like