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

feat(config): add pull metric reader support to declarative config

Open MikeGoldsmith opened this issue 7 months ago • 2 comments

The declarative config MeterProvider implementation currently raises an error when pull metric readers are specified (e.g. Prometheus), with a message directing users to configure pull readers via the SDK API directly.

The OTel declarative config spec lists pull metric readers (PullMetricExporter) as a supported plugin component type. This issue tracks implementing proper support for pull metric readers in _meter_provider.py.

Related: #3631

MikeGoldsmith avatar Apr 09 '26 17:04 MikeGoldsmith

Hi, I'd like to work on this. My understanding is the fix involves implementing PullMetricExporter plugin resolution in _meter_provider.py, aligned with the OTel declarative config spec. I'll look at #3631 for context on the existing architecture. Let me know if there's a preferred approach or if this is already being worked on.

ravitheja4531-cell avatar Apr 10 '26 14:04 ravitheja4531-cell

Closing — pull metric reader support was added in #5216. This issue was left open while #5073 (metric producer support) was closed by mistake; correcting the bookkeeping now.

MikeGoldsmith avatar Jun 03 '26 16:06 MikeGoldsmith