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

Fail deployment for Gauges in RequestScoped beans #1978

Merged

Conversation

tomas-langer
Copy link
Member

Warn for Gauges not in ApplicationScoped or Singleton beans

Signed-off-by: Tomas Langer tomas.langer@oracle.com

Resolves #1977

Warn for Gauges not in ApplicationScoped or Singleton beans

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
@tomas-langer tomas-langer added bug Something isn't working metrics labels Jun 11, 2020
@tomas-langer tomas-langer self-assigned this Jun 11, 2020
Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
Copy link
Member

@tjquinno tjquinno left a comment

Choose a reason for hiding this comment

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

Can the same problem occur with metric types other than @Gauge on @RequestScoped beans?

Copy link
Member

@tjquinno tjquinno left a comment

Choose a reason for hiding this comment

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

LGTM

@tomas-langer
Copy link
Member Author

Related spec PR:
eclipse/microprofile-metrics#367

@tomas-langer tomas-langer merged commit 28ab6f3 into helidon-io:master Jun 11, 2020
@tomas-langer tomas-langer deleted the 1977-metric-fail-request-scope branch June 11, 2020 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working metrics
Projects
None yet
Development

Successfully merging this pull request may close these issues.

@Gauge in ReqeustScope breaks all metrics
2 participants