Skip to content

Conversation

@manasagar
Copy link

@manasagar manasagar commented Jan 19, 2026

What is the purpose of the change?

For issue #12517
based on #14067

Checklist

  • Make sure there is a GitHub_issue field for the change.
  • Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
  • Write necessary unit-test to verify your logic correction. If the new feature or significant change is committed, please remember to add sample in dubbo samples project.
  • Make sure gitHub actions can pass. Why the workflow is failing and how to fix it?

@codecov-commenter
Copy link

codecov-commenter commented Jan 19, 2026

Codecov Report

❌ Patch coverage is 74.19355% with 16 lines in your changes missing coverage. Please review.
✅ Project coverage is 60.76%. Comparing base (a8283f6) to head (8a1aca5).

Files with missing lines Patch % Lines
...apache/dubbo/metrics/otlp/OtlpMetricsReporter.java 74.35% 4 Missing and 6 partials ⚠️
...g/apache/dubbo/config/nested/OtlpMetricConfig.java 64.70% 6 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##                3.3   #16023      +/-   ##
============================================
+ Coverage     60.74%   60.76%   +0.01%     
- Complexity    11750    11752       +2     
============================================
  Files          1949     1952       +3     
  Lines         88898    88960      +62     
  Branches      13407    13412       +5     
============================================
+ Hits          54002    54057      +55     
- Misses        29337    29342       +5     
- Partials       5559     5561       +2     
Flag Coverage Δ
integration-tests-java21 32.22% <11.29%> (-0.01%) ⬇️
integration-tests-java8 32.32% <11.29%> (-0.03%) ⬇️
samples-tests-java21 32.12% <11.29%> (+0.09%) ⬆️
samples-tests-java8 29.74% <11.29%> (-0.08%) ⬇️
unit-tests-java11 59.06% <74.19%> (+0.03%) ⬆️
unit-tests-java17 58.52% <74.19%> (+0.02%) ⬆️
unit-tests-java21 58.51% <74.19%> (-0.01%) ⬇️
unit-tests-java25 58.50% <74.19%> (+0.04%) ⬆️
unit-tests-java8 59.01% <74.19%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@zrlw zrlw changed the title completed issue 12517, implemented new module for otlp config along w… completed issue 12517, implemented new module for otlp config along with test checking jvm metric export using mock server Jan 20, 2026
<dependency>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId>
<version>4.32.0</version>
Copy link
Contributor

Choose a reason for hiding this comment

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

the version defined at dubbo-dependencies-bom is not suitable for this model?

Copy link
Author

Choose a reason for hiding this comment

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

Yes it was giving runtime error with the defined version

Copy link
Author

@manasagar manasagar Jan 20, 2026

Choose a reason for hiding this comment

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

java.lang.NoClassDefFoundError: com/google/protobuf/RuntimeVersion$RuntimeDomain

at io.opentelemetry.proto.resource.v1.Resource.<clinit>(Resource.java:22)
at io.micrometer.registry.otlp.OtlpMeterRegistry.<init>(OtlpMeterRegistry.java:129)
at io.micrometer.registry.otlp.OtlpMeterRegistry.<init>(OtlpMeterRegistry.java:118)
at io.micrometer.registry.otlp.OtlpMeterRegistry.<init>(OtlpMeterRegistry.java:107)
at org.apache.dubbo.metrics.otlp.OtlpMetricsReporter.<init>(OtlpMetricsReporter.java:57)
at org.apache.dubbo.metrics.otlp.OtlpMetricsReporterFactoryTest.export_Test(OtlpMetricsReporterFactoryTest.java:114)
at java.base/java.lang.reflect.Method.invoke(Method.java:565)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1604)

we are using 3.8 while we needed 4.32

Copy link
Contributor

Choose a reason for hiding this comment

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

the version defined at dubbo-dependencies-bom had been bumped to 4.33.4 by recent PR, so it's redundant now.

Copy link
Author

@manasagar manasagar Jan 24, 2026

Choose a reason for hiding this comment

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

@zrlw I have fixed this PTAL

<dependency>
<groupId>com.squareup.okhttp3</groupId>
<artifactId>mockwebserver</artifactId>
<version>4.12.0</version>
Copy link
Contributor

Choose a reason for hiding this comment

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

it's redundant as the same version has been defined at dubbo-dependencies-bom

Copy link
Author

Choose a reason for hiding this comment

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

fixed this

@manasagar manasagar force-pushed the up-dev-issue#12517 branch 2 times, most recently from 4b987d4 to 0f05baf Compare January 23, 2026 14:07
…ith test checking jvm metric export using mock server
Copy link
Contributor

@zrlw zrlw left a comment

Choose a reason for hiding this comment

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

LGTM

@zrlw
Copy link
Contributor

zrlw commented Jan 26, 2026

@songxiaosheng

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants