This is a startup template for web-sugar
git clone --recursive git@github.com:ForNetCode/web-sugar-startup.git
cd web-sugar-startup
sbt run -Dconfig.file=src/main/resources/application.conf # -Dlogback.configurationFile=src/main/resources/logback.xmlcom.timzaak.Server is the entry point. It inits web server and grpc server.
com.timzaak.DI init all class, It's cake pattern, you can use macwire
to do the same thing.
We use redoc to viewer OpenAPI.
viewer url is: http://127.0.0.1:8080/docs/index.html
yaml file url is: http://127.0.0.1:8080/docs/docs.yaml
It's an example of how to use openTelemetry java agent in IDEA, should not be used in production environment.
cd agent
wget https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/download/v1.32.0/opentelemetry-javaagent.jar-javaagent:agent/opentelemetry-javaagent.jar -Dotel.javaagent.configuration-file=agent/config.propertiesmore info refer this doc: https://opentelemetry.io/docs/instrumentation/java/automatic/