opentelemetry-python
opentelemetry-python copied to clipboard
simplify flow of prometheus metric reader
As per the following comment:
wondering if this were to return metric sequence you could simplify this chain of calls callback
-> _receive_metrics
-> add_metrics_data
-> deque
-> yield
.
Originally posted by @srikanthccv in https://github.com/open-telemetry/opentelemetry-python/pull/2321#discussion_r819112008