diff --git a/docs/instrumentation/grafana_dashboard.png b/docs/instrumentation/grafana_dashboard.png new file mode 100644 index 000000000..9e53e5cf5 Binary files /dev/null and b/docs/instrumentation/grafana_dashboard.png differ diff --git a/docs/instrumentation/metrics-cats-effect-io-runtime.md b/docs/instrumentation/metrics-cats-effect-io-runtime.md index 2b25f4add..9382e77a8 100644 --- a/docs/instrumentation/metrics-cats-effect-io-runtime.md +++ b/docs/instrumentation/metrics-cats-effect-io-runtime.md @@ -287,6 +287,13 @@ object Main extends IOApp.Simple { @:@ +## Grafana dashboard + +You can use a Grafana [dashboard][grafana-dashboard] to visualize collected metrics. + +@:image(grafana_dashboard.png) { + alt = Grafana Dashboard +} ## Customization @@ -571,3 +578,5 @@ val config: IORuntimeMetrics.Config = { IORuntimeMetrics.register[IO](runtime.metrics, config) ``` + +[grafana-dashboard]: https://grafana.com/grafana/dashboards/21487-cats-effect-runtime-metrics/ diff --git a/docs/oteljava/tracing-context-propagation.md b/docs/oteljava/tracing-context-propagation.md index f0b944395..8c06a280e 100644 --- a/docs/oteljava/tracing-context-propagation.md +++ b/docs/oteljava/tracing-context-propagation.md @@ -56,7 +56,7 @@ import org.typelevel.otel4s.trace.Tracer object Main extends IOApp.Simple { def program(tracer: Tracer[IO]): IO[Unit] = tracer.span("test").use { span => // start 'test' span using otel4s - println(s"jctx: ${JSpan.current().getSpanContext}") // get a span from a ThreadLocal var + println(s"jctx: ${JSpan.current().getSpanContext}") // get a span from a ThreadLocal IO.println(s"otel4s: ${span.context}") }