Skip to content

Update spec to permit negative observations of native/exponential histograms? #4155

Open
@callumj

Description

@callumj

What are you trying to achieve?

The current spec language prevents observations of negative values of Histograms:

The value is expected to be non-negative. This API SHOULD be documented in a way to communicate to users that this value is expected to be non-negative. This API SHOULD NOT validate this value, that is left to implementations of the API.

However, with the introduction of exponential histograms, negative values are supported thanks to the separation of negative and positive buckets and the removal of _sum counters being directly emitted from the application (leaving the backend to deal with these observations).

I am wondering when the spec will update to permit such a behavior?

Additional context.

Original discussion in opentelemetry-java.

Metadata

Metadata

Assignees

No one assigned

    Labels

    spec:metricsRelated to the specification/metrics directorytriage:accepted:needs-sponsorReady to be implemented, but does not yet have a specification sponsor

    Type

    No type

    Projects

    Status

    Spec - Accepted

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions