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

Build observe using 'server.features.observe' in main,but it doesn't exist config in application.yaml #8955

Closed
essapp opened this issue Jul 10, 2024 · 1 comment · Fixed by #8965
Assignees
Labels
4.x Version 4.x triage

Comments

@essapp
Copy link

essapp commented Jul 10, 2024

Environment Details

  • Helidon Version:4.0.10
  • Helidon SE or Helidon MP:SE
  • JDK version:21
  • OS:MAC
  • Docker version (if applicable):

Problem Description

main.java:
ObserveFeature observe = ObserveFeature.builder()
.config(config.get("server.features.observe"))
.addObserver(HealthObserver.builder()
.addCheck(DbClientHealthCheck.create(dbClient, config.get("db.health-check")))
.build())
.build();
applicationyaml:
server:
port: 8080
host: 0.0.0.0

app:
greeting: "Hello"

Steps to reproduce

Reproducing the environment:
https://github.com/essapp/server

@tvallin
Copy link
Member

tvallin commented Jul 12, 2024

Thanks for catching this.

This property can be used to customized observability : https://helidon.io/docs/v4/se/observability

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4.x Version 4.x triage
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants