diff --git a/docs/shipping/Code/java-traces-with-kafka-using-opentelemetry.md b/docs/shipping/Code/java-traces-with-kafka-using-opentelemetry.md index 6c7c571a..3ab89f41 100644 --- a/docs/shipping/Code/java-traces-with-kafka-using-opentelemetry.md +++ b/docs/shipping/Code/java-traces-with-kafka-using-opentelemetry.md @@ -65,10 +65,8 @@ If you produce and consume Kafka topics/messages from different applications, th ```shell java -javaagent:/opentelemetry-javaagent.jar \ - -Dotel.traces.exporter=otlp \ -Dotel.metrics.exporter=none \ -Dotel.resource.attributes=service.name= \ - -Dotel.exporter.otlp.endpoint=http://localhost:4317 \ -Dotel.instrumentation.messaging.experimental.receive-telemetry.enabled=true -jar target/*.jar ``` @@ -85,10 +83,8 @@ You can download the relevant applications from the [kafka-opentelemetry GitHub Run the OpenTelemetry Java Agent insturmated with the [Kafka consumer application](https://github.com/ppatierno/kafka-opentelemetry/tree/main/kafka-consumer-agent) in the following way: ```shell java -javaagent:/opentelemetry-javaagent.jar \ - -Dotel.traces.exporter=otlp \ -Dotel.metrics.exporter=none \ -Dotel.resource.attributes=service.name= \ - -Dotel.exporter.otlp.endpoint=http://localhost:4317 \ -Dotel.instrumentation.messaging.experimental.receive-telemetry.enabled=true \ -jar kafka-consumer-agent/target/kafka-consumer-agent-1.0-SNAPSHOT-jar-with-dependencies.jar ``` @@ -97,10 +93,8 @@ java -javaagent:/opentelemetry-javaagent.jar \ Run the OpenTelemetry Java Agent insturmated with the [Kafka producer application](https://github.com/ppatierno/kafka-opentelemetry/tree/main/kafka-producer-agent) in the following way: ```shell java -javaagent:/opentelemetry-javaagent.jar \ - -Dotel.traces.exporter=otlp \ -Dotel.metrics.exporter=none \ -Dotel.resource.attributes=service.name= \ - -Dotel.exporter.otlp.endpoint=http://localhost:4317 \ -Dotel.instrumentation.messaging.experimental.receive-telemetry.enabled=true \ -jar kafka-producer-agent/target/kafka-producer-agent-1.0-SNAPSHOT-jar-with-dependencies.jar ``` @@ -198,10 +192,8 @@ Add the following command to your Java application Dockerfile or equivalent: ```shell java -javaagent:/opentelemetry-javaagent-all.jar \ - -Dotel.traces.exporter=otlp \ -Dotel.metrics.exporter=none \ -Dotel.resource.attributes=service.name=<> \ - -Dotel.exporter.otlp.endpoint=http://<>:4317 \ -Dotel.instrumentation.messaging.experimental.receive-telemetry.enabled=true -jar target/*.jar ``` diff --git a/docs/shipping/Code/java.md b/docs/shipping/Code/java.md index 1182c952..a7a6197e 100644 --- a/docs/shipping/Code/java.md +++ b/docs/shipping/Code/java.md @@ -1118,10 +1118,8 @@ Run the following command from your Java application's directory: ```shell java -javaagent:/opentelemetry-javaagent-all.jar \ - -Dotel.traces.exporter=otlp \ -Dotel.metrics.exporter=none \ -Dotel.resource.attributes=service.name= \ - -Dotel.exporter.otlp.endpoint=http://localhost:4317 \ -jar target/*.jar ```