[sdk-node] implement enviornment configuration for auto-paired `PeriodicExportingMetricReader`
pichlermarc opened this issue · comments
Description
The specification defines that PeriodicExporingMetricReader
s that are auto-paired with an exporter can be configured via environment variables.
For this issue to be considered done we need to:
- implement #4551
- in
@opentelmetry/sdk-node
, where the automatic pairing from #4551 is implemented, read the env vars fromOTEL_METRIC_EXPORT_INTERVAL
/OTEL_METRIC_EXPORT_TIMEOUT
and configure the auto-pairedPeriodicExportingMetricReader
accordingly. Use defaults if the env vars are unset.
Additional infomation
Original feature-request:
The specification defines that
PeriodicExporingMetricReader
s that are auto-paired with an exporter can be configured via environment variables.
Does the spec actually say anything about this only applying when auto-paired? The BatchSpanProcessor reads from the environment variables directly
so the environment variables are applied globally. I'm guessing this is related to the yaml config file conversation and the related concern around precedence