opentelemetry-python icon indicating copy to clipboard operation
opentelemetry-python copied to clipboard

Define a mechanism to select the measurement consumer

Open ocelotl opened this issue 3 years ago • 3 comments

Ok, but I think that we will need a mechanism to do that. Opening a corresponding issue.

Originally posted by @ocelotl in https://github.com/open-telemetry/opentelemetry-python/pull/2339#r782625333

ocelotl avatar Jan 12 '22 00:01 ocelotl

I don't think we need to tackle this for a while. MeasurementConsumer is not part of the spec and we don't need to publicly expose it or allow users to implement it right now. Once we have good confidence in it, maybe we should open it up, but I'd rather keep it private and have the freedom to tweak things even after a stable release.

aabmass avatar Jan 14 '22 22:01 aabmass

As far as I understand, the design is based on the idea of MeasurementConsumer being a component that can be replaced by another implementation. If that is the case, then don't we need a way to let the user select the implementation? :shrug:

ocelotl avatar Jan 18 '22 18:01 ocelotl

At some point that's the idea. For now, we don't need to expose any of the MeasurementConsumer stuff to the user/public API.

aabmass avatar Jan 19 '22 19:01 aabmass