Skip to content

Commit

Permalink
deploy: 26ff053
Browse files Browse the repository at this point in the history
  • Loading branch information
iRevive committed Dec 31, 2024
1 parent 8e6f78a commit 9715eaa
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 4 deletions.
Binary file added instrumentation/grafana_dashboard.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions instrumentation/metrics-cats-effect-io-runtime.html
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@
<li class="level2 nav-leaf"><a href="#work-stealing-thread-pool-poller-1">Work-stealing thread pool - poller</a></li>
<li class="level1 nav-leaf"><a href="#getting-started">Getting started</a></li>
<li class="level1 nav-leaf"><a href="#registering-metrics-collectors">Registering metrics collectors</a></li>
<li class="level1 nav-leaf"><a href="#grafana-dashboard">Grafana dashboard</a></li>
<li class="level1 nav-node"><a href="#customization">Customization</a></li>
<li class="level2 nav-leaf"><a href="#cpu-starvation-2">CPU Starvation</a></li>
<li class="level2 nav-leaf"><a href="#work-stealing-thread-pool-compute-2">Work-stealing thread pool - compute</a></li>
Expand Down Expand Up @@ -518,6 +519,12 @@ <h2 id="registering-metrics-collectors" class="section"><a class="anchor-link le
</div>
</div>

<h2 id="grafana-dashboard" class="section"><a class="anchor-link left" href="#grafana-dashboard"><i class="icofont-laika link">&#xef71;</i></a>Grafana dashboard</h2>
<p>You can use a Grafana <a href="https://grafana.com/grafana/dashboards/21487-cats-effect-runtime-metrics/">dashboard</a> to visualize collected metrics.</p>
<div class="default-image-block">
<img src="grafana_dashboard.png" alt="Grafana Dashboard">
</div>

<h2 id="customization" class="section"><a class="anchor-link left" href="#customization"><i class="icofont-laika link">&#xef71;</i></a>Customization</h2>
<p>The behavior of the <code>IORuntimeMetrics.register</code> can be customized via <code>IORuntimeMetrics.Config</code>.</p>

Expand Down
2 changes: 1 addition & 1 deletion oteljava/tracing-context-propagation.html
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ <h2 id="configuration" class="section"><a class="anchor-link left" href="#config
</span><span class="keyword">object</span><span> </span><span class="type-name">Main</span><span> </span><span class="keyword">extends</span><span> </span><span class="type-name">IOApp</span><span>.</span><span class="type-name">Simple</span><span> {
</span><span class="keyword">def</span><span> </span><span class="declaration-name">program</span><span>(</span><span class="identifier">tracer</span><span>: </span><span class="type-name">Tracer</span><span>[</span><span class="type-name">IO</span><span>]): </span><span class="type-name">IO</span><span>[</span><span class="type-name">Unit</span><span>] =
</span><span class="identifier">tracer</span><span>.</span><span class="identifier">span</span><span>(</span><span class="string-literal">&quot;test&quot;</span><span>).</span><span class="identifier">use</span><span> { </span><span class="identifier">span</span><span> =&gt; </span><span class="comment">// start &#39;test&#39; span using otel4s
</span><span> </span><span class="identifier">println</span><span>(</span><span class="string-literal">s&quot;jctx: </span><span class="substitution">${JSpan.current().getSpanContext}</span><span class="string-literal">&quot;</span><span>) </span><span class="comment">// get a span from a ThreadLocal var
</span><span> </span><span class="identifier">println</span><span>(</span><span class="string-literal">s&quot;jctx: </span><span class="substitution">${JSpan.current().getSpanContext}</span><span class="string-literal">&quot;</span><span>) </span><span class="comment">// get a span from a ThreadLocal
</span><span> </span><span class="type-name">IO</span><span>.</span><span class="identifier">println</span><span>(</span><span class="string-literal">s&quot;otel4s: </span><span class="substitution">${span.context}</span><span class="string-literal">&quot;</span><span>)
}

Expand Down
4 changes: 2 additions & 2 deletions sdk/aws-xray.html
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@
<h1 id="aws-x-ray-id-generator" class="title">AWS | X-Ray ID Generator</h1>
<p>The AWS X-Ray ID generator generates trace IDs that are compatible with AWS X-Ray tracing <a href="https://docs.aws.amazon.com/xray/latest/devguide/xray-api-sendingdata.html#xray-api-traceids">spec</a>.
An example of the AWS X-Ray trace and span IDs:</p>
<pre class="keep-together pdf epub"><code class="nohighlight"><span class="attribute-name">trace_id</span><span>: </span><span class="string-literal">67740226e8106f63e7e32532dc98c37d</span><span>
</span><span class="attribute-name">span_id</span><span>: </span><span class="string-literal">049ddbc818dcc472</span></code></pre>
<pre class="keep-together pdf epub"><code class="nohighlight"><span class="attribute-name">trace_id</span><span>: </span><span class="string-literal">67744cb53ea0c35382ee818255ae3878</span><span>
</span><span class="attribute-name">span_id</span><span>: </span><span class="string-literal">4b2b718929819ab7</span></code></pre>

<h2 id="getting-started" class="section"><a class="anchor-link left" href="#getting-started"><i class="icofont-laika link">&#xef71;</i></a>Getting Started</h2>
<div class="tab-container" data-tab-group="build-tool">
Expand Down
2 changes: 1 addition & 1 deletion sdk/prometheus-exporter.html
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ <h1 id="prometheus-exporter" class="title">Prometheus Exporter</h1>
</span><span>counter_total{otel_scope_name=&quot;meter&quot;} 1
</span><span class="comment"># HELP target_info Target metadata
# TYPE target_info gauge
</span><span>target_info{host_arch=&quot;amd64&quot;,host_name=&quot;fv-az1040-826&quot;,os_description=&quot;Linux 6.5.0-1025-azure&quot;,os_type=&quot;linux&quot;,process_command_line=&quot;/usr/lib/jvm/temurin-11-jdk-amd64/bin/java -Dcats.effect.trackFiberContext=true mdoc.SbtMain&quot;,process_executable_path=&quot;/usr/lib/jvm/temurin-11-jdk-amd64/bin/java&quot;,process_pid=&quot;3093&quot;,process_runtime_description=&quot;Eclipse Adoptium OpenJDK 64-Bit Server VM 11.0.25+9&quot;,process_runtime_name=&quot;OpenJDK Runtime Environment&quot;,process_runtime_version=&quot;11.0.25+9&quot;,service_name=&quot;unknown_service:scala&quot;,telemetry_sdk_language=&quot;scala&quot;,telemetry_sdk_name=&quot;otel4s&quot;,telemetry_sdk_version=&quot;0.12-f2d0850-SNAPSHOT&quot;} 1</span></code></pre>
</span><span>target_info{host_arch=&quot;amd64&quot;,host_name=&quot;fv-az738-738&quot;,os_description=&quot;Linux 6.5.0-1025-azure&quot;,os_type=&quot;linux&quot;,process_command_line=&quot;/usr/lib/jvm/temurin-11-jdk-amd64/bin/java -Dcats.effect.trackFiberContext=true mdoc.SbtMain&quot;,process_executable_path=&quot;/usr/lib/jvm/temurin-11-jdk-amd64/bin/java&quot;,process_pid=&quot;2997&quot;,process_runtime_description=&quot;Eclipse Adoptium OpenJDK 64-Bit Server VM 11.0.25+9&quot;,process_runtime_name=&quot;OpenJDK Runtime Environment&quot;,process_runtime_version=&quot;11.0.25+9&quot;,service_name=&quot;unknown_service:scala&quot;,telemetry_sdk_language=&quot;scala&quot;,telemetry_sdk_name=&quot;otel4s&quot;,telemetry_sdk_version=&quot;0.12-26ff053-SNAPSHOT&quot;} 1</span></code></pre>

<h2 id="getting-started" class="section"><a class="anchor-link left" href="#getting-started"><i class="icofont-laika link">&#xef71;</i></a>Getting Started</h2>
<div class="tab-container" data-tab-group="build-tool">
Expand Down

0 comments on commit 9715eaa

Please sign in to comment.