2
respostas

Problemas no jar

guigo@DESKTOP-K9UUIB4 MINGW64 ~/Documents/Conhecimentos Jaeger/ambiente-tracing/ambiente-tracing/logs
$ java -javaagent:opentelemetry\opentelemetry-javaagent.jar -Dotel.service.name=api-cursos -Dotel.traces.exporter=otlp -Dotel.metrics.exporter=none -Dotel.integration.jdbc.datasource.enabled=true -Dotel.instrumentation.jdbc.datasource.enabled=true -Dotel.exporter.otlp.endpoint=http://localhost:4318 Dotel.exporter.otlp.protocol=http/protobuf -jar target\*.jar
Error opening zip file or JAR manifest missing : opentelemetryopentelemetry-javaagent.jar
Error occurred during initialization of VM
agent library failed to init: instrument
2 respostas

Pela mensagem de erro o comando java utilizado está com algo errado, talvez seja o \ ao invés do / ?

-javaagent:opentelemetry/opentelemetry-javaagent.jar
java -javaagent:opentelemetry/opentelemetry-javaagent.jar -Dotel.service.name=api-cursos -Dotel.traces.exporter=otlp -Dotel.metrics.exporter=none -Dotel.integration.jdbc.datasource.enabled=true -Dotel.instrumentation.jdbc.datasource.enabled=true -Dotel.exporter.otlp.endpoint=http://localhost:4318 Dotel.exporter.otlp.protocol=http/protobuf -jar target/*.jar

A pasta opentelemetry foi criada no diretório logs e o arquivo opentelemetry-javaagent.jar se encontra neste local?