Skip to content

Decide whether to add Resource to Accumulation or keep it in the Processor #1378

Closed
@AzfaarQureshi

Description

@AzfaarQureshi

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, moving Resource to Accumulation could enable the Exporter 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 to Accumulation, or make the required changes in our SDK.

Metadata

Metadata

Assignees

No one assigned

    Labels

    1.10.0rc1release candidate 1 for metrics GAmetricsrelease:required-for-gaTo be resolved before GA releasesdkAffects the SDK package.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions