Skip to content

Commit

Permalink
Merge pull request #716 from logzio/doc-887-editsdec5
Browse files Browse the repository at this point in the history
removing some otlp
  • Loading branch information
Simplychee authored Dec 9, 2024
2 parents a7dee24 + 2f4a255 commit c5d46d3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,8 @@ If you produce and consume Kafka topics/messages from different applications, th

```shell
java -javaagent:<path/to>/opentelemetry-javaagent.jar \
-Dotel.traces.exporter=otlp \
-Dotel.metrics.exporter=none \
-Dotel.resource.attributes=service.name=<YOUR-SERVICE-NAME> \
-Dotel.exporter.otlp.endpoint=http://localhost:4317 \
-Dotel.instrumentation.messaging.experimental.receive-telemetry.enabled=true
-jar target/*.jar
```
Expand All @@ -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:<path/to>/opentelemetry-javaagent.jar \
-Dotel.traces.exporter=otlp \
-Dotel.metrics.exporter=none \
-Dotel.resource.attributes=service.name=<YOUR-CONSUMER-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
```
Expand All @@ -97,10 +93,8 @@ java -javaagent:<path/to>/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:<path/to>/opentelemetry-javaagent.jar \
-Dotel.traces.exporter=otlp \
-Dotel.metrics.exporter=none \
-Dotel.resource.attributes=service.name=<YOUR-PRODUCER-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
```
Expand Down Expand Up @@ -198,10 +192,8 @@ Add the following command to your Java application Dockerfile or equivalent:

```shell
java -javaagent:<path/to>/opentelemetry-javaagent-all.jar \
-Dotel.traces.exporter=otlp \
-Dotel.metrics.exporter=none \
-Dotel.resource.attributes=service.name=<<YOUR-SERVICE-NAME>> \
-Dotel.exporter.otlp.endpoint=http://<<logzio-monitoring-service-dns>>:4317 \
-Dotel.instrumentation.messaging.experimental.receive-telemetry.enabled=true
-jar target/*.jar
```
Expand Down
2 changes: 0 additions & 2 deletions docs/shipping/Code/java.md
Original file line number Diff line number Diff line change
Expand Up @@ -1118,10 +1118,8 @@ Run the following command from your Java application's directory:

```shell
java -javaagent:<path/to>/opentelemetry-javaagent-all.jar \
-Dotel.traces.exporter=otlp \
-Dotel.metrics.exporter=none \
-Dotel.resource.attributes=service.name=<YOUR-SERVICE-NAME> \
-Dotel.exporter.otlp.endpoint=http://localhost:4317 \
-jar target/*.jar
```
Expand Down

0 comments on commit c5d46d3

Please sign in to comment.