-
Notifications
You must be signed in to change notification settings - Fork 1.7k
[mdatagen] Re-Aggregate Metric by Attributes #13900
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
Open
shalper2
wants to merge
45
commits into
open-telemetry:main
Choose a base branch
from
shalper2:10726-reag
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+3,316
−392
Open
Changes from 43 commits
Commits
Show all changes
45 commits
Select commit
Hold shift + click to select a range
4360d05
reagg on record
shalper2 7c0cf5e
chlog
shalper2 35bbea3
simplify reagg
shalper2 b586ac7
added default values for gauge and sum type
shalper2 46b4f08
simplified record
shalper2 89abc2e
gogenerate
shalper2 3152269
fix original tests
shalper2 f446bd7
updated record
shalper2 38e3202
validation
shalper2 a96aa50
make gogenerate and update metadata.yaml
shalper2 8a34414
fixed renamed variable
shalper2 a10bce1
removed broked validation
shalper2 a62c37e
check valid aggregation strategy at unmarshal
shalper2 cb6f773
fixed existing tests
shalper2 22cb283
fixed optional attributes
shalper2 6370d0b
removed generated testresults
shalper2 8c25665
updating tests
shalper2 83d6a48
removing testresults artifacts
shalper2 79fc792
constants for sum and average
shalper2 a9a4180
fixed typo
shalper2 6c6ac4b
added min/max
shalper2 d3deb99
cleaned up if statements
shalper2 64ed5c4
changes to testing
shalper2 e1b8492
rm junit stuff
shalper2 9568c45
Revert "rm junit stuff"
shalper2 53f9727
Reapply "rm junit stuff"
shalper2 2f088d3
Revert "rm junit stuff"
shalper2 2afb202
Revert "changes to testing"
shalper2 a61e0f0
fixed most tests
shalper2 5964165
fixed lint
shalper2 be95636
optional attributes before agg
shalper2 de2b34a
default enabled attribute to true
shalper2 70d7548
update metadata-schema
shalper2 37ca3d3
make gogenerate
shalper2 af4235f
make gogenerate
shalper2 0de401f
extened tests to cover different agg strategies
shalper2 4f8e424
make gogenerate/rebase
shalper2 7396a47
make gogenerate
shalper2 2b62d85
Update cmd/mdatagen/internal/templates/metrics_test.go.tmpl
shalper2 e32d0c8
fixed comments
shalper2 5bcf1a8
fixed generated consts
shalper2 7c45208
rm junit
shalper2 3cf891e
work on contrib tests
shalper2 69f7ba7
fixes attribute overwrite and enforces enabled for resource
shalper2 4c964c7
deleted junit
shalper2 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,25 @@ | ||
# Use this changelog template to create an entry for release notes. | ||
|
||
# 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: mdatagen | ||
|
||
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`). | ||
note: "Add support for metric re-aggregation by disabling attributes in metadata.yaml and user config" | ||
|
||
# One or more tracking issues or pull requests related to the change | ||
issues: [10726] | ||
|
||
# (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: | ||
|
||
# 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: [user] |
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
73 changes: 67 additions & 6 deletions
73
cmd/mdatagen/internal/sampleconnector/internal/metadata/generated_config.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks like this is also applied to the resource attributes. The resource attributes with missing
enabled
fields now get enabled=true. That's why tests are failing.I think we should make the
enabled
required and fill all missing spots in contrib to unblock this PR