Skip to content

sdk/metrics: _LastValueAggregation and OTLP encoders omit start_time_unix_nano for Gauge #5849

Open

Description

@dashpole

Per the MetricReader specification and Start timestamps specification, StartTimeUnixNano rules apply to all metrics according to the MetricReader's configured temporality for the instrument kind, "not just those whose point kinds includes an aggregation temporality field."

Currently, Gauge and ObservableGauge (LastValue aggregation) omit start_time_unix_nano:

Activity

  1. ImamWahyudiz commented on Nov 5, 2026

    @ImamWahyudiz

    Hi! @dashpole I've been working on this and submitted a fix in PR #5852 (properly assigning and preserving start_time_unix_nano across _LastValueAggregation and the OTLP encoders).

    Reviews and feedback are welcome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions