This repository was archived by the owner on Sep 15, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
[OTEL-2697][pkg/otlp/metrics] Add WithInferDeltaInterval option #765
Merged
Merged
Changes from 4 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
1ddff90
[pkg/otlp/metrics] Add WithInferDeltaInterval option
mx-psi 6be92d6
Add changelog note and make tolerance more strict
mx-psi 878bce6
Add end to end tests; fix end to end helper
mx-psi 8f64583
make check work with unsigned integers
mx-psi 3b6a5c2
Fix test
mx-psi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| # One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix' | ||
| change_type: enhancement | ||
|
|
||
| # The name of the component (e.g. pkg/quantile) | ||
| component: pkg/otlp/metrics | ||
|
|
||
| # A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`). | ||
| note: Add `WithInferDeltaInterval` option to infer the interval for delta metrics | ||
|
|
||
| # The PR related to this change | ||
| issues: [765] | ||
|
|
||
| # (Optional) One or more lines of additional information to render under the primary note. | ||
| # These lines will be padded with 2 spaces and then inserted directly into the document. | ||
| # Use pipe (|) for multiline entries. | ||
| subtext: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
110 changes: 110 additions & 0 deletions
110
pkg/otlp/metrics/testdata/datadogdata/mixed/interval_inferred.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,110 @@ | ||
| { | ||
| "Metrics": { | ||
| "Sketches": [ | ||
| { | ||
| "Name": "delta_histogram", | ||
| "Tags": [], | ||
| "Host": "", | ||
| "OriginID": "", | ||
| "OriginProduct": 10, | ||
| "OriginSubProduct": 17, | ||
| "OriginProductDetail": 0, | ||
| "Interval": 20, | ||
| "Timestamp": 1755603980235511877, | ||
| "Summary": { | ||
| "Min": -100, | ||
| "Max": 99.95733062532716, | ||
| "Sum": 3.141592653589793, | ||
| "Avg": 0.15707963267948966, | ||
| "Cnt": 20 | ||
| }, | ||
| "Keys": [ | ||
| -1635, | ||
| -1590, | ||
| 0, | ||
| 1453, | ||
| 1498, | ||
| 1524, | ||
| 1543, | ||
| 1558, | ||
| 1570, | ||
| 1580, | ||
| 1589, | ||
| 1597, | ||
| 1604, | ||
| 1610, | ||
| 1616, | ||
| 1621, | ||
| 1626, | ||
| 1631, | ||
| 1635 | ||
| ], | ||
| "Counts": [ | ||
| 1, | ||
| 1, | ||
| 1, | ||
| 1, | ||
| 1, | ||
| 1, | ||
| 1, | ||
| 1, | ||
| 1, | ||
| 1, | ||
| 1, | ||
| 1, | ||
| 1, | ||
| 1, | ||
| 1, | ||
| 1, | ||
| 1, | ||
| 1, | ||
| 2 | ||
| ] | ||
| } | ||
| ], | ||
| "TimeSeries": [ | ||
| { | ||
| "Name": "random_delta_sum", | ||
| "Tags": [], | ||
| "Host": "", | ||
| "OriginID": "", | ||
| "OriginProduct": 10, | ||
| "OriginSubProduct": 17, | ||
| "OriginProductDetail": 0, | ||
| "Type": "count", | ||
| "Interval": 20, | ||
| "Timestamp": 1755603940234853944, | ||
| "Value": 8617 | ||
| }, | ||
| { | ||
| "Name": "random_delta_sum", | ||
| "Tags": [], | ||
| "Host": "", | ||
| "OriginID": "", | ||
| "OriginProduct": 10, | ||
| "OriginSubProduct": 17, | ||
| "OriginProductDetail": 0, | ||
| "Type": "count", | ||
| "Interval": 20, | ||
| "Timestamp": 1755603960236383064, | ||
| "Value": 9227 | ||
| }, | ||
| { | ||
| "Name": "random_delta_sum", | ||
| "Tags": [], | ||
| "Host": "", | ||
| "OriginID": "", | ||
| "OriginProduct": 10, | ||
| "OriginSubProduct": 17, | ||
| "OriginProductDetail": 0, | ||
| "Type": "count", | ||
| "Interval": 20, | ||
| "Timestamp": 1755603980235511877, | ||
| "Value": 9125 | ||
| } | ||
| ] | ||
| }, | ||
| "Hosts": { | ||
| "": {} | ||
| } | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.