Skip to content

Commit 26ff053

Browse files
authored
Merge pull request #878 from iRevive/docs/metrics
docs: add Grafana dashboard link
2 parents f2d0850 + ab127e3 commit 26ff053

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed
353 KB
Loading

docs/instrumentation/metrics-cats-effect-io-runtime.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,13 @@ object Main extends IOApp.Simple {
287287

288288
@:@
289289

290+
## Grafana dashboard
291+
292+
You can use a Grafana [dashboard][grafana-dashboard] to visualize collected metrics.
293+
294+
@:image(grafana_dashboard.png) {
295+
alt = Grafana Dashboard
296+
}
290297

291298
## Customization
292299

@@ -571,3 +578,5 @@ val config: IORuntimeMetrics.Config = {
571578

572579
IORuntimeMetrics.register[IO](runtime.metrics, config)
573580
```
581+
582+
[grafana-dashboard]: https://grafana.com/grafana/dashboards/21487-cats-effect-runtime-metrics/

docs/oteljava/tracing-context-propagation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ import org.typelevel.otel4s.trace.Tracer
5656
object Main extends IOApp.Simple {
5757
def program(tracer: Tracer[IO]): IO[Unit] =
5858
tracer.span("test").use { span => // start 'test' span using otel4s
59-
println(s"jctx: ${JSpan.current().getSpanContext}") // get a span from a ThreadLocal var
59+
println(s"jctx: ${JSpan.current().getSpanContext}") // get a span from a ThreadLocal
6060
IO.println(s"otel4s: ${span.context}")
6161
}
6262

0 commit comments

Comments
 (0)