Skip to content
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

Adds the OTel Collector's MetricsLevel configuration, use it to control consumer metrics #56

Merged
merged 6 commits into from
Oct 2, 2023

Conversation

jmacd
Copy link
Contributor

@jmacd jmacd commented Sep 29, 2023

This adds the concept of detailed-level metrics. When detailed metrics are in use, a per-stream-unique attribute will be added.
When normal metrics are in use, three new counters are available.
When basic metrics are in use (or are disabled), no new metrics are used.

This adds a new assertion in Consumer.Close() which warns about memory leaks that were not released, enabled with the Arrow-standard --tags=assert build flag.

This adds a correction to overcome "drift" in the memory inuse accounting, which was happening. (Uncomment a Println in this PR to see it.) Now, when a leak is discovered in Close() the metrics are manually closed out by subtracting inuse.

Copy link
Contributor

@lquerel lquerel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jmacd jmacd merged commit 7944158 into open-telemetry:main Oct 2, 2023
1 check passed
jmacd added a commit that referenced this pull request Oct 6, 2023
Since we still do not have a changelog automation, this is what is
included since v0.3.0 worthy of note:

#47
#52
#53 
#54 
#55 
#56
#57 

README improvements,
Obfuscation processor fixes.
@jmacd jmacd deleted the jmacd/metrics_level branch November 15, 2023 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants