opentelemetry-python
opentelemetry-python copied to clipboard
Histogram metrics are much larger in v1.23.0
Describe your environment Describe any aspect of your environment relevant to the problem, including your Python version, platform, version numbers of installed dependencies, information about your cloud hosting provider, etc. If you're reporting a problem with a specific version of a library in this repo, please check whether the problem has been fixed on main.
We noticed a very large increase in our GCM cost due to an increase in metrics bytes ingested for our base histogram metrics (e.g. http.client.duration
). This coincided with an upgrade to v1.23.0
. A subsequent downgrade to v1.22.0
led to a decrease in the bytes ingested and cost increases back to their prior levels.
This commit is the revert: https://github.com/Recidiviz/pulse-data/commit/d321a4e30f612e9964f18106ded28d6a0fce250e
Steps to reproduce Describe exactly how to reproduce the error. Include a code sample if applicable.
Upgrade to v1.23.0
or later (only tested up to v1.24.0
, so it is possible it has been fixed)
What is the expected behavior?
No increase in bytes ingested by GCM for histogram metrics.
What is the actual behavior?
Order of magnitude increase in cost.
Additional context
I haven't taken the time to fully understand the changes here, but if this PR led to all of the buckets always being created, and before that was not the case, this could be the culprit: https://github.com/open-telemetry/opentelemetry-python/pull/3429