-
Notifications
You must be signed in to change notification settings - Fork 811
feat: add support for metric data-point flags #4916
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -62,6 +62,7 @@ | |
| from opentelemetry.sdk.metrics._internal.measurement import Measurement | ||
| from opentelemetry.sdk.metrics._internal.point import Buckets as BucketsPoint | ||
| from opentelemetry.sdk.metrics._internal.point import ( | ||
| DataPointFlags, | ||
| ExponentialHistogramDataPoint, | ||
| HistogramDataPoint, | ||
| NumberDataPoint, | ||
|
|
@@ -887,10 +888,10 @@ def collect( | |
| offset=value_negative.offset, | ||
| bucket_counts=(value_negative.get_offset_counts()), | ||
| ), | ||
| # FIXME: Find the right value for flags | ||
| flags=0, | ||
| min=min_, | ||
| max=max_, | ||
| # FIXME: Find the right value for flags | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. With the new
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not sure if there is additional work to be done here for determining what exactly the flags should be set to, so I have opted to leave the comment here. |
||
| flags=DataPointFlags.get_default(), | ||
| ) | ||
|
|
||
| # Here collection_temporality is CUMULATIVE. | ||
|
|
@@ -1055,10 +1056,10 @@ def collect( | |
| self._previous_value_negative.get_offset_counts() | ||
| ), | ||
| ), | ||
| # FIXME: Find the right value for flags | ||
| flags=0, | ||
| min=self._previous_min, | ||
| max=self._previous_max, | ||
| # FIXME: Find the right value for flags | ||
| flags=DataPointFlags.get_default(), | ||
| ) | ||
|
|
||
| return None | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.