Skip to content

Commit

Permalink
fix opentelemetry example (#835)
Browse files Browse the repository at this point in the history
* fix opentelemetry example

* Update docs/opentelemetry-example.md

Co-authored-by: Michael Nedokushev <grouzen.hexy@gmail.com>

---------

Co-authored-by: Michael Nedokushev <grouzen.hexy@gmail.com>
  • Loading branch information
IvanFinochenko and grouzen authored May 9, 2024
1 parent 9423b12 commit 7cb9996
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/opentelemetry-example.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,6 @@ docker run \
datalust/seq
```

You must also switch the Tracing and Logging providers to Jaeger and Seq. For this, you need to swap the `stdout` providers we use by default in [OtelSdk.scala](https://github.com/zio/zio-telemetry/blob/series/2.x/opentelemetry-example/src/main/scala/zio/telemetry/opentelemetry/example/otel/OtelSdk.scala#L10) to [TracerProvider.jaeger](https://github.com/zio/zio-telemetry/blob/series/2.x/opentelemetry-example/src/main/scala/zio/telemetry/opentelemetry/example/otel/TracerProvider.scala#L37) and [LoggerProvider.seq](https://github.com/zio/zio-telemetry/blob/series/2.x/opentelemetry-example/src/main/scala/zio/telemetry/opentelemetry/example/otel/LoggerProvider.scala#L36)

Run the application and fire a curl request as shown above. Head over to [Jaeger UI](http://localhost:16686/) and [Seq UI](http://localhost:80/) to see the result.

0 comments on commit 7cb9996

Please sign in to comment.