Skip to content

Commit

Permalink
Add ZeroThreshold field to exponentialHistogramDataPoint in pmetric p…
Browse files Browse the repository at this point in the history
…ackage (#8769)

**Description:** Add ZeroThreshold field to
exponentialHistogramDataPoint in pmetric package. It's needed to
understand which values fall in the ZeroBucket


Fixes #8802
  • Loading branch information
wildum committed Nov 16, 2023
1 parent 9475ac7 commit e13dd5b
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .chloggen/expose-zerothreshold.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
change_type: enhancement

# The name of the component, or a single word describing the area of concern, (e.g. otlpreceiver)
component: pdata

# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
note: Add ZeroThreshold field to exponentialHistogramDataPoint in pmetric package.

# One or more tracking issues or pull requests related to the change
issues: [8802]

# Optional: The change log or logs in which this entry should be included.
# e.g. '[user]' or '[user, api]'
# Include 'user' if the change is relevant to end users.
# Include 'api' if there is a change to a library API.
# Default: '[user]'
change_logs: [api]
6 changes: 6 additions & 0 deletions pdata/internal/cmd/pdatagen/internal/pmetric_package.go
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,12 @@ var exponentialHistogramDataPoint = &messageValueStruct{
sumField,
minField,
maxField,
&primitiveField{
fieldName: "ZeroThreshold",
returnType: "float64",
defaultVal: "float64(0.0)",
testVal: "float64(0.5)",
},
},
}

Expand Down
12 changes: 12 additions & 0 deletions pdata/pmetric/generated_exponentialhistogramdatapoint.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions pdata/pmetric/generated_exponentialhistogramdatapoint_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e13dd5b

Please sign in to comment.