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 counters for QueryPlanCacheHit and QueryPlanCacheMiss in HibernateMetrics #2199

Merged
merged 1 commit into from
Oct 29, 2020

Conversation

danila-m
Copy link
Contributor

This PR exposes in Micrometer two new Hibernate Metrics : QueryPlanCacheHit and QueryPlanCacheMiss.

@educhastenier
Copy link

❓ Why this contribution in HibernateMetrics and not in HibernateQueryMetrics?

@shakuzen shakuzen added the enhancement A general enhancement label Oct 29, 2020
@shakuzen shakuzen added this to the 1.6.0 milestone Oct 29, 2020
@shakuzen
Copy link
Member

Why this contribution in HibernateMetrics and not in HibernateQueryMetrics?

It is not per-query metrics - it is metrics across all queries, so there is not a cardinality concern with many different queries.

Copy link
Member

@shakuzen shakuzen left a comment

Choose a reason for hiding this comment

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

Thank you for the contribution. Looks good to me.

@shakuzen shakuzen merged commit a476dad into micrometer-metrics:master Oct 29, 2020
@educhastenier
Copy link

Why this contribution in HibernateMetrics and not in HibernateQueryMetrics?

It is not per-query metrics - it is metrics across all queries, so there is not a cardinality concern with many different queries.

Thx for this explanations, I had missed this subtility 😌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement A general enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants