-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
[exporter/kafka] Impelement partitioning for OTLP metrics #31315
Merged
dmitryax
merged 49 commits into
open-telemetry:main
from
SHaaD94:balance-metrics-by-resources
Apr 29, 2024
Merged
Changes from all commits
Commits
Show all changes
49 commits
Select commit
Hold shift + click to select a range
1380a2a
Impelement partitioning for OTLP metrics
SHaaD94 5123395
Merge branch 'main' of https://github.com/open-telemetry/opentelemetr…
SHaaD94 25a8d77
Merge branch 'main' into balance-metrics-by-resources
SHaaD94 a813b9f
Merge branch 'main' into balance-metrics-by-resources
SHaaD94 c773a31
Merge branch 'main' into balance-metrics-by-resources
SHaaD94 d6745b2
Merge branch 'main' into balance-metrics-by-resources
SHaaD94 e8a2ce6
Merge branch 'main' of https://github.com/open-telemetry/opentelemetr…
SHaaD94 a78e71a
Merge branch 'main' of https://github.com/open-telemetry/opentelemetr…
SHaaD94 82c9e64
1
SHaaD94 740ec99
Merge branch 'main' of https://github.com/open-telemetry/opentelemetr…
SHaaD94 deca155
Use existing hash function
SHaaD94 ccd1fef
Add github issue
SHaaD94 65bcb4a
Merge branch 'main' into balance-metrics-by-resources
SHaaD94 e536f98
Merge branch 'main' into balance-metrics-by-resources
SHaaD94 25c61a5
add partitioning by specific tags
SHaaD94 9b4bea7
Add more tests
SHaaD94 ca9f993
Merge branch 'main' into balance-metrics-by-resources
SHaaD94 a11531b
Merge branch 'main' into balance-metrics-by-resources
SHaaD94 244ca03
Update exporter/kafkaexporter/README.md
SHaaD94 b4e20e9
Update pkg/pdatautil/hash_test.go
SHaaD94 925ed8b
add missed %v
SHaaD94 1f43023
Merge branch 'main' into balance-metrics-by-resources
SHaaD94 593702b
Merge branch 'main' into balance-metrics-by-resources
SHaaD94 b602a8b
Merge branch 'main' into balance-metrics-by-resources
SHaaD94 088c4ae
Merge branch 'main' into balance-metrics-by-resources
SHaaD94 4390dfe
Merge branch 'main' into balance-metrics-by-resources
SHaaD94 7802c17
Merge branch 'main' into balance-metrics-by-resources
SHaaD94 fb81f66
Merge branch 'main' into balance-metrics-by-resources
SHaaD94 dcc32bb
Merge branch 'main' into balance-metrics-by-resources
SHaaD94 d4ae3df
Merge branch 'main' into balance-metrics-by-resources
SHaaD94 db57263
Merge branch 'main' into balance-metrics-by-resources
SHaaD94 9df70f1
Merge branch 'main' into balance-metrics-by-resources
SHaaD94 6e34560
Merge branch 'main' into balance-metrics-by-resources
SHaaD94 3ba71b2
Merge branch 'main' into balance-metrics-by-resources
SHaaD94 9474705
Merge branch 'main' into balance-metrics-by-resources
SHaaD94 13d6284
Merge branch 'main' into balance-metrics-by-resources
SHaaD94 e09d644
Merge branch 'main' into balance-metrics-by-resources
SHaaD94 965631f
Merge branch 'main' of https://github.com/open-telemetry/opentelemetr…
SHaaD94 b66537a
rollback partitioning by specific resource attributes
SHaaD94 5c5502d
Bump go version to 1.21.9 to fix GO-2024-2687
SHaaD94 6203927
Update exporter/kafkaexporter/go.mod
SHaaD94 2628a01
Merge branch 'main' into balance-metrics-by-resources
SHaaD94 e56a50e
lint
SHaaD94 c74f6c7
Merge branch 'main' of https://github.com/open-telemetry/opentelemetr…
SHaaD94 4e5ee2f
Merge branch 'balance-metrics-by-resources' of github.com:SHaaD94/ope…
SHaaD94 8784607
tidy
SHaaD94 d161c6b
do not mutate messages
SHaaD94 f14f588
Merge branch 'main' into balance-metrics-by-resources
SHaaD94 22dd715
Merge branch 'main' into balance-metrics-by-resources
SHaaD94 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 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,27 @@ | ||
# 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. filelogreceiver) | ||
component: kafkaexporter | ||
|
||
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`). | ||
note: add an ability to publish kafka messages with message key based on metric resource attributes - it will allow partitioning metrics in Kafka. | ||
|
||
# Mandatory: One or more tracking issues related to the change. You can use the PR number here if no issue exists. | ||
issues: [29433, 30666, 31675] | ||
|
||
# (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: | ||
|
||
# If your change doesn't affect end users or the exported elements of any package, | ||
# you should instead start your pull request title with [chore] or use the "Skip Changelog" label. | ||
# 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, api] |
This file contains 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 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 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 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 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 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 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 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 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 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
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.
This control is super confusing. It's unclear what
Key
is doing and why it's needed. I believe the flag can be simply sent to thenewPdataMetricsMarshaler
constructor. And there is no need to expose theKeyableMetricsMarshaler
API here.I understand that you are doing it consistently with what's already done for tracing. We can keep it as is, but should be refactored later for both metrics and traces. Feel free to submit an issue if you agree.
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.
If you don't mind, I would prefer to leave it as is for now and refactor it in next PR. I am planing to raise it shortly for logs partitioning by resources.
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.
Yes, that's what I suggesting