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

Don't emit Current Thread Count and Loaded Class Count to OTLP #3679

Merged
merged 13 commits into from
Jun 5, 2024

Conversation

harsimar
Copy link
Contributor

@harsimar harsimar commented May 2, 2024

We currently have a couple metrics (Current Thread Count & Loaded Class Count) flowing to OTLP & Breeze. Since these two metrics also have analogous metrics in the otel runtime instrumentation, and they aren't custom JMX metrics, removed these two metrics from the OTLP code path (it just goes to Breeze to maintain backwards compatibility until v4).

harsimar and others added 2 commits May 9, 2024 12:05
Co-authored-by: Helen <56097766+heyams@users.noreply.github.com>
@heyams
Copy link
Contributor

heyams commented May 13, 2024

@harsimar beta.22 standalone exporter is live. please update your PR to run smoke tests with it.

* the OTEL collector will still get the metric names with _. When that change gets merged &
* incorporated, we will need to change this/DetectUnexpectedOtelMetrics test so that the Breeze
* verification expects our default jmx metrics with spaces.
* <p>- Loaded Class Count: This covers the case of collecting a default jmx metric that the
Copy link
Contributor

Choose a reason for hiding this comment

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

can we mention this metric goes to breeze only now?

Comment on lines 124 to 127
System.out.println("Printing metrics names to # of occurrences for otlp");
for (Map.Entry<String, Integer> entry : occurrences.entrySet()) {
System.out.println(entry.toString());
}
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
System.out.println("Printing metrics names to # of occurrences for otlp");
for (Map.Entry<String, Integer> entry : occurrences.entrySet()) {
System.out.println(entry.toString());
}

@trask trask self-requested a review May 21, 2024 16:56
@harsimar harsimar changed the title Enable otel runtime metrics & Don't emit Current Thread Count and Loaded Class Count to OTLP Don't emit Current Thread Count and Loaded Class Count to OTLP Jun 4, 2024
@harsimar harsimar merged commit 87ffd75 into main Jun 5, 2024
87 checks passed
@harsimar harsimar deleted the harskaur/otelRuntimeCounters branch June 5, 2024 16:34
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.

None yet

4 participants