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

Add metric support for grpc #5923

Merged
merged 2 commits into from
Apr 25, 2022
Merged

Conversation

jack-berg
Copy link
Member

Was surprised to learn that gRPC metrics weren't already enabled. Any reason not to enable them?

@jack-berg jack-berg requested a review from a team as a code owner April 22, 2022 22:45
@@ -44,7 +46,7 @@ public final class LibraryTestRunner extends InstrumentationTestRunner {
GlobalOpenTelemetry.resetForTest();

testSpanExporter = InMemorySpanExporter.create();
testMetricExporter = InMemoryMetricExporter.create();
testMetricExporter = InMemoryMetricExporter.create(AggregationTemporality.DELTA);
Copy link
Member Author

Choose a reason for hiding this comment

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

Cumulative metrics are a bad fit for tests. We have a shard instance of the SDK for all tests. If temporality is cumulative, then metrics that initially received measurements for one test will continue to report for the remaining tests. The result is very cumbersome to assert against and debug.

Copy link
Member

@trask trask left a comment

Choose a reason for hiding this comment

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

📈

@trask trask merged commit 6fe3299 into open-telemetry:main Apr 25, 2022
@@ -34,7 +34,7 @@ void reset() {

@Override
public AggregationTemporality getAggregationTemporality(InstrumentType instrumentType) {
return AggregationTemporality.CUMULATIVE;
return AggregationTemporality.DELTA;
Copy link
Contributor

Choose a reason for hiding this comment

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

RashmiRam pushed a commit to RashmiRam/opentelemetry-auto-instr-java that referenced this pull request May 23, 2022
* Add metric support for grpc

* Spotless
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