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
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.
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/