-
Notifications
You must be signed in to change notification settings - Fork 26
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
Add Concurrency Schedulers to OLAP telemetry #3178
Conversation
WalkthroughThe recent updates aim to enhance the OpenTelemetry Collector by introducing new constants and labels related to concurrency schedulers and their management, including aspects like rate limiting and dropping. These changes refine the system's monitoring capabilities, offering more granular control and insights into the performance and behavior of schedulers within the metrics processing pipeline. Changes
TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
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.
Review Status
Actionable comments generated: 0
Configuration used: CodeRabbit UI
Files selected for processing (4)
- pkg/otelcollector/consts/consts.go (1 hunks)
- pkg/otelcollector/metricsprocessor/internal/check_response_labels.go (6 hunks)
- pkg/otelcollector/metricsprocessor/internal/check_response_labels_test.go (1 hunks)
- pkg/otelcollector/metricsprocessor/internal/labels_filter.go (1 hunks)
Files skipped from review due to trivial changes (1)
- pkg/otelcollector/consts/consts.go
Additional comments: 5
pkg/otelcollector/metricsprocessor/internal/labels_filter.go (1)
- 30-31: Added new constants
otelconsts.ApertureConcurrencySchedulersLabel
andotelconsts.ApertureDroppingConcurrencySchedulersLabel
to the list of predefined labels. Ensure these constants are correctly defined inconsts.go
and used consistently across the codebase.pkg/otelcollector/metricsprocessor/internal/check_response_labels_test.go (1)
- 108-128: The test case "Sets concurrency schedulers" correctly adds and verifies the handling of concurrency schedulers and dropping concurrency schedulers labels based on the
CheckResponse
. This ensures the new functionality is covered by unit tests.pkg/otelcollector/metricsprocessor/internal/check_response_labels.go (3)
- 36-39: Added comments for new labels
otelconsts.ApertureSamplersLabel
,otelconsts.ApertureDroppingSamplersLabel
,otelconsts.ApertureConcurrencySchedulersLabel
, andotelconsts.ApertureDroppingConcurrencySchedulersLabel
. This documentation helps maintain clarity on the purpose and usage of these labels.- 90-96: Introduced slices for dropping and non-dropping concurrency schedulers, ensuring that these new categories are correctly initialized for label addition. This is a crucial step for the correct functioning of the
AddCheckResponseBasedLabels
function with the new labels.- 174-185: The handling of concurrency scheduler decisions within
AddCheckResponseBasedLabels
is correctly implemented, matching the pattern used for other decision types. This ensures that labels for concurrency schedulers and their dropping counterparts are accurately reflected in telemetry data.
3976554
to
9d6d853
Compare
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.
Review Status
Actionable comments generated: 0
Configuration used: CodeRabbit UI
Files selected for processing (4)
- pkg/otelcollector/consts/consts.go (1 hunks)
- pkg/otelcollector/metricsprocessor/internal/check_response_labels.go (6 hunks)
- pkg/otelcollector/metricsprocessor/internal/check_response_labels_test.go (1 hunks)
- pkg/otelcollector/metricsprocessor/internal/labels_filter.go (1 hunks)
Files skipped from review as they are similar to previous changes (4)
- pkg/otelcollector/consts/consts.go
- pkg/otelcollector/metricsprocessor/internal/check_response_labels.go
- pkg/otelcollector/metricsprocessor/internal/check_response_labels_test.go
- pkg/otelcollector/metricsprocessor/internal/labels_filter.go
Description of change
This adds missing scheduler do OLAP telemetry.
Checklist
Summary by CodeRabbit