Skip to content
This repository was archived by the owner on Sep 17, 2025. It is now read-only.
This repository was archived by the owner on Sep 17, 2025. It is now read-only.

Drop negative bucket bounds and negative values in record API #376

@mayurkale22

Description

@mayurkale22

Negative values are currently not supported by any of the backends that we support and have histograms (Stackdriver and Prometheus). We have decided to implement a backwards incompatible change and drop negative values in the Record API (We will start with logging an error for few versions then throw an exception).

This could be a breaking change if users are recording negative value for any measure. We planned to implement this change asap in all the libraries and explain this behaviour to the current users very clearly.

Counterpart in Java: census-instrumentation/opencensus-java#1499 and census-instrumentation/opencensus-java#1525

Metadata

Metadata

Assignees

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