Skip to content

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

Merged
harsimar merged 13 commits into
mainfrom
harskaur/otelRuntimeCounters
Jun 5, 2024
Merged

Don't emit Current Thread Count and Loaded Class Count to OTLP#3679
harsimar merged 13 commits into
mainfrom
harskaur/otelRuntimeCounters

Conversation

@harsimar

@harsimar harsimar commented May 2, 2024

Copy link
Copy Markdown
Member

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

heyams commented May 13, 2024

Copy link
Copy Markdown
Contributor

@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
Copy Markdown
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
Copy Markdown
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
@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.

4 participants