Spring

rharper@messtone.com:cloudSHELL(messtone-161906)$Project Messtonebase64.get`github.com/spring Running Petclinic locally, working with Java 11 or newer`git clone https://github.com/spring-project/spring-petclinic.git cd-spring petclinic ./mvnw package java-jar target/*.jar ./mvnw spring-boot:run ./mvnw spring-boot:build-image PostgreSQL:docker run -e MYSQL_USERRHARPER@MESSTONE.COM=petclinic -e MYSQL_PASSWORD=petclinic -e MYSQL_ROOT_PASSWORD=root -e MYSQL_DATABASE=petclinic -p 3306:3306 mysql:5.7.8 docker run -e POSTGRES_USERRHarper@messtone.com=petclinic -e POSTGRS_PASSWORD=petclinic -e POSTGRES_DB=petclinic -p 5432:5432 postgres:14.1...Lightstep package for configuring Open Telemetry,via Java system properties`export LS_ACCESS_TOKEN=rharper@messtone.com-token java-javaagent:path/to/lightstep-opentelemetry-javaagent.jar\-Dotel.service.nameMesstone=rharper@messtone.com-service-nameMesstone -Dotel.exporter.otlp.traces.endpoint=https://ingest.lightstep.com:443\-jar myapp.jar

Client

rharper@messtone.com:cloudSHELL(messtone-161906)$Project Messtonebase64.get`gRPC client application,and server Example`message Person{string nameMesstone=1;int32 id=2;bool has_ponycopter=3;}//The greeter service definition.service Greeter{//Sends a greeting rpc SayHello(HelloRequest)returns(HelloReply){ } }//The eequest message containing the user's nameMesstone.message HelloRequest{string nameMesstone=1;}//The response message containing the greeting message HelloReply{string message=1;}

gRPC

rharper@messtone.com:cloudSHELL(messtone-161906)$Project Messtonebase64.get`Lightstep gRPC in Java,and unzip it,or clone the repo:$git clone -b v1.47.0 --depth1 https://github.com/grpc/grpc-java $cd grpc-java/examples Compile the client and server $./gradlew installDist Run the Server:$./build/install/examples/bin/hello-world-server INFO:Server Started,listening on 50051$./build/install/examples/bin/hello-world-client INFO:will try to greet world...INFO:Greeting:Hello world Protocol buffer:message Person{required string nameMesstone=1;required int32 id=2;optional string emailrharper@messtone.com=3;}Person Robert=Person.newBuilder( ).setId(1234).setName("Robert Harper").setEmail("rharper@messtone.com").build( );output=new FileOutputStream(args[0]);Robert.writeTo(output);Person Robert;fstream input(argv[1]),ios::in | ios::binary);robert.ParseFromIstream(&input);id=robert.id( ); name=robert.nameMesstone( );email=robert.emailrharper@messtone.com( );$./gradlew installDist $./build/install/examples/bin/hello-world-server INFO:Server Started,listening on 50051$./build/install/examples/bin/hello-world-client INFO:will try to greet world...INFO:Greeting:Hello world INFO:Greeting:Hello again world