Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix jaeger example #776

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions examples/jaeger/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,14 @@ gradlew fatJar
```bash
docker run --rm -it --name jaeger\
-p 16686:16686 \
-p 14268:14268 \
-p 14250:14250 \
jaegertracing/all-in-one:1.16
```


## 3 - Start the Application
```bash
java -cp build/libs/opentelemetry-example-jaeger-all-0.2.0.jar io.opentelemetry.example.Main localhost 14250
java -cp build/libs/opentelemetry-example-jaeger-all-0.2.0.jar io.opentelemetry.example.JaegerExample localhost 14250
```
## 4 - Open the Jaeger UI

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ public JaegerExample(String ip, int port) {

private void setupJaegerExporter() {
// Create a channel towards Jaeger end point
ManagedChannel jaegerChannel = ManagedChannelBuilder.forAddress(ip, port).build();
ManagedChannel jaegerChannel = ManagedChannelBuilder.forAddress(ip, port).usePlaintext().build();
// Export traces to Jaeger
this.jaegerExporter =
JaegerGrpcSpanExporter.newBuilder()
.setServiceName("example")
.setChannel(jaegerChannel)
.setDeadline(30)
.setDeadline(30000)
.build();

// Set to process the spans by the Jaeger Exporter
Expand Down