This is a startup template for web-sugar
git clone --recursive [email protected]:ForNetCode/web-sugar-startup.git
cd web-sugar-startup
sbt run -Dconfig.file=src/main/resources/application.conf # -Dlogback.configurationFile=src/main/resources/logback.xml
com.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.properties
more info refer this doc: https://opentelemetry.io/docs/instrumentation/java/automatic/