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

Addressing DgsGraphQLMetricsInstrumentation Latency increase #1092

Merged
merged 1 commit into from
Jun 5, 2022

Conversation

berngp
Copy link
Contributor

@berngp berngp commented Jun 5, 2022

Pull Request type

  • Bugfix
  • Feature
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Other (please describe):

Changes in this PR

This commit addresses the increased latencies observed on DGS 4.10.4, 5.0.0, 5.0.1.
We are also adding support for JMH benchmarks across modules of DGS, that said we are only focusing in this commit on graphql-dgs-spring-boot-micrometer. To run benchmarks you can just call ./gradlew graphql-dgs-spring-boot-micrometer:jmh.

Fixes #1089

This commit addresses the increased latencies observed on DGS 4.10.4,
5.0.0, 5.0.1. We are also adding support for JMH benchmarks across
  modules of DGS, that said we are only focusing in this commit on `graphql-dgs-spring-boot-micrometer`.
@berngp berngp merged commit 059090b into master Jun 5, 2022
@berngp berngp deleted the feature/1089-perf-degradation branch June 5, 2022 18:39
@@ -177,18 +177,17 @@ class DgsGraphQLMetricsInstrumentation(
}
}

override fun beginExecutionStrategy(
parameters: InstrumentationExecutionStrategyParameters
Copy link
Contributor

Choose a reason for hiding this comment

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

So switching to use InstrumenatationContext was the issue?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Exactly

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.

bug: Massive performance degradation since v4.10.4 if the graphql-dgs-spring-boot-micrometer module is active
2 participants