Decide whether to add Resource to Accumulation or keep it in the Processor #1378
Labels
1.10.0rc1
release candidate 1 for metrics GA
metrics
release:required-for-ga
To be resolved before GA release
sdk
Affects the SDK package.
This issue captures some discussion from the November 12 2020 Python SIG.
According to the spec
The Accumulator MUST provide the option to associate a Resource with the Accumulations that it produces.
Currently in the metrics SDK
Resource
is passed as a field to the processor because the current assumption is that Resource will remain the same across all accumulations. However, movingResource
toAccumulation
could enable theExporter
to consume from multiple accumulators while keeping context of which Resource each accumulation is coming from.The discussion in the SIG concluded that, depending on what the Python community decides, we should either create an issue in the spec to make it optional to add
Resource
toAccumulation
, or make the required changes in our SDK.The text was updated successfully, but these errors were encountered: