ForNetCode / web-sugar-startup

This is a startup template for web-sugar https://github.com/ForNetCode/web-sugar

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

web-sugar-startup

This is a startup template for web-sugar

Quick Start

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.

OpenTelemetry

It's an example of how to use openTelemetry java agent in IDEA, should not be used in production environment.

download OpenTelemetry-java-instrumentation

cd agent
 wget https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/download/v1.32.0/opentelemetry-javaagent.jar

add the following to VM Options

-javaagent:agent/opentelemetry-javaagent.jar -Dotel.javaagent.configuration-file=agent/config.properties

more info refer this doc: https://opentelemetry.io/docs/instrumentation/java/automatic/

About

This is a startup template for web-sugar https://github.com/ForNetCode/web-sugar

License:MIT License


Languages

Language:Scala 76.4%Language:Shell 12.9%Language:Dockerfile 10.7%