Skip to content

Make metric temporality configurable #1324

@pol-colomo

Description

@pol-colomo

The default temporality of the metrics are in delta and would be good to have this configurable through env or yaml config to be able to switch to cumulative instead.

This would be very useful for integrations with Graphana for example, that expects metrics as cumulative.

const OTLPExporter = new OTLPMetricExporter({
    url: 'otlpendpoint.com',
    temporalityPreference: AggregationTemporality.CUMULATIVE // env variable
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions