elastic/apm-queue

Encoder/Decoder bytes metrics

Closed this issue · 1 comments

The current metric implementation for Encoder/Decoder bytes produced metrics leaves to the caller instantiating the metrics that are used for gathering data.

Instead of this approach would be better to add the metric creation logic here and expose a otel MeterProvider configuration attribute to configure metric collection.

I'm closing this issue as the code it mention does not exists anymore.

It was referring to the metrics in codec/json

encoded metric.Int64Counter
decoded metric.Int64Counter
, which has been since refactored and removed.