Skip to content

Commit

Permalink
Deploying to gh-pages - 15:34:13
Browse files Browse the repository at this point in the history
  • Loading branch information
graemerocher committed Jun 3, 2024
1 parent 93b2019 commit e01874c
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 37 deletions.
72 changes: 36 additions & 36 deletions snapshot/guide/configurationreference.html
Original file line number Diff line number Diff line change
Expand Up @@ -462,9 +462,9 @@ <h3 id="_micronaut_grpc_client_runtime_config_properties">Micronaut Grpc Client
</div>
<div class="sect2">
<h3 id="_micronaut_grpc_opentracing_config_properties">Micronaut Grpc Opentracing Config Properties</h3>
<a id="io.micronaut.grpc.server.tracing.GrpcServerTracingInterceptorConfiguration" href="#io.micronaut.grpc.server.tracing.GrpcServerTracingInterceptorConfiguration">&#128279;</a>
<a id="io.micronaut.grpc.client.tracing.GrpcClientTracingInterceptorConfiguration" href="#io.micronaut.grpc.client.tracing.GrpcClientTracingInterceptorConfiguration">&#128279;</a>
<table class="tableblock frame-all grid-all stretch">
<caption class="title">Table 3. Configuration Properties for <a href="../api/io/micronaut/grpc/server/tracing/GrpcServerTracingInterceptorConfiguration.html">GrpcServerTracingInterceptorConfiguration</a></caption>
<caption class="title">Table 3. Configuration Properties for <a href="../api/io/micronaut/grpc/client/tracing/GrpcClientTracingInterceptorConfiguration.html">GrpcClientTracingInterceptorConfiguration</a></caption>
<colgroup>
<col style="width: 33.3333%;">
<col style="width: 33.3333%;">
Expand All @@ -479,46 +479,56 @@ <h3 id="_micronaut_grpc_opentracing_config_properties">Micronaut Grpc Opentracin
</thead>
<tbody>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>grpc.server.tracing.tracer</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>grpc.client.tracing.tracer</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">io.opentracing.Tracer</p></td>
<td class="tableblock halign-left valign-top"></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>grpc.server.tracing.operation-name</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>grpc.client.tracing.operation-name</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">io.opentracing.contrib.grpc.OperationNameConstructor</p></td>
<td class="tableblock halign-left valign-top"></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>grpc.server.tracing.traced-attributes</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">io.opentracing.contrib.grpc.TracingServerInterceptor$ServerRequestAttribute</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>grpc.client.tracing.streaming</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">boolean</p></td>
<td class="tableblock halign-left valign-top"></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>grpc.server.tracing.streaming</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">boolean</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>grpc.client.tracing.traced-attributes</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">io.opentracing.contrib.grpc.TracingClientInterceptor$ClientRequestAttribute</p></td>
<td class="tableblock halign-left valign-top"></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>grpc.server.tracing.verbosity</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>grpc.client.tracing.verbosity</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">boolean</p></td>
<td class="tableblock halign-left valign-top"></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>grpc.server.tracing.server-span-decorator</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">io.opentracing.contrib.grpc.ServerSpanDecorator</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>grpc.client.tracing.active-span-source</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">io.opentracing.contrib.grpc.ActiveSpanSource</p></td>
<td class="tableblock halign-left valign-top"></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>grpc.server.tracing.server-close-decorator</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">io.opentracing.contrib.grpc.ServerCloseDecorator</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>grpc.client.tracing.active-span-context-source</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">io.opentracing.contrib.grpc.ActiveSpanContextSource</p></td>
<td class="tableblock halign-left valign-top"></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>grpc.client.tracing.client-span-decorator</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">io.opentracing.contrib.grpc.ClientSpanDecorator</p></td>
<td class="tableblock halign-left valign-top"></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>grpc.client.tracing.client-close-decorator</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">io.opentracing.contrib.grpc.ClientCloseDecorator</p></td>
<td class="tableblock halign-left valign-top"></td>
</tr>
</tbody>
</table>
<div style="page-break-after: always;"></div>
<a id="io.micronaut.grpc.client.tracing.GrpcClientTracingInterceptorConfiguration" href="#io.micronaut.grpc.client.tracing.GrpcClientTracingInterceptorConfiguration">&#128279;</a>
<a id="io.micronaut.grpc.server.tracing.GrpcServerTracingInterceptorConfiguration" href="#io.micronaut.grpc.server.tracing.GrpcServerTracingInterceptorConfiguration">&#128279;</a>
<table class="tableblock frame-all grid-all stretch">
<caption class="title">Table 4. Configuration Properties for <a href="../api/io/micronaut/grpc/client/tracing/GrpcClientTracingInterceptorConfiguration.html">GrpcClientTracingInterceptorConfiguration</a></caption>
<caption class="title">Table 4. Configuration Properties for <a href="../api/io/micronaut/grpc/server/tracing/GrpcServerTracingInterceptorConfiguration.html">GrpcServerTracingInterceptorConfiguration</a></caption>
<colgroup>
<col style="width: 33.3333%;">
<col style="width: 33.3333%;">
Expand All @@ -533,48 +543,38 @@ <h3 id="_micronaut_grpc_opentracing_config_properties">Micronaut Grpc Opentracin
</thead>
<tbody>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>grpc.client.tracing.tracer</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>grpc.server.tracing.tracer</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">io.opentracing.Tracer</p></td>
<td class="tableblock halign-left valign-top"></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>grpc.client.tracing.operation-name</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>grpc.server.tracing.operation-name</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">io.opentracing.contrib.grpc.OperationNameConstructor</p></td>
<td class="tableblock halign-left valign-top"></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>grpc.client.tracing.streaming</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">boolean</p></td>
<td class="tableblock halign-left valign-top"></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>grpc.client.tracing.traced-attributes</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">io.opentracing.contrib.grpc.TracingClientInterceptor$ClientRequestAttribute</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>grpc.server.tracing.traced-attributes</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">io.opentracing.contrib.grpc.TracingServerInterceptor$ServerRequestAttribute</p></td>
<td class="tableblock halign-left valign-top"></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>grpc.client.tracing.verbosity</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>grpc.server.tracing.streaming</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">boolean</p></td>
<td class="tableblock halign-left valign-top"></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>grpc.client.tracing.active-span-source</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">io.opentracing.contrib.grpc.ActiveSpanSource</p></td>
<td class="tableblock halign-left valign-top"></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>grpc.client.tracing.active-span-context-source</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">io.opentracing.contrib.grpc.ActiveSpanContextSource</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>grpc.server.tracing.verbosity</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">boolean</p></td>
<td class="tableblock halign-left valign-top"></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>grpc.client.tracing.client-span-decorator</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">io.opentracing.contrib.grpc.ClientSpanDecorator</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>grpc.server.tracing.server-span-decorator</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">io.opentracing.contrib.grpc.ServerSpanDecorator</p></td>
<td class="tableblock halign-left valign-top"></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>grpc.client.tracing.client-close-decorator</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">io.opentracing.contrib.grpc.ClientCloseDecorator</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>grpc.server.tracing.server-close-decorator</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">io.opentracing.contrib.grpc.ServerCloseDecorator</p></td>
<td class="tableblock halign-left valign-top"></td>
</tr>
</tbody>
Expand Down
10 changes: 9 additions & 1 deletion snapshot/js/multi-language-sample.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,14 @@ function postProcessCodeBlocks() {
return string.charAt(0).toUpperCase() + string.slice(1);
}

function ensureAtLeastOneCodeBlockIsVisible(collectionOfSampleElements) {
if (collectionOfSampleElements.length > 0 && collectionOfSampleElements.every(a => a.classList.contains("hidden"))) {
const firstElement = collectionOfSampleElements[0];
console.info("No code snippet in default preferred language, showing first", firstElement)
firstElement.classList.remove("hidden")
}
}

function processSampleEl(sampleEl, prefLangId, prefBuildId, prefConfigId) {
var codeEl = sampleEl.querySelector("code[data-lang]");
if (codeEl != null) {
Expand Down Expand Up @@ -181,7 +189,7 @@ function postProcessCodeBlocks() {
processSampleEl(currentSampleElement, languageId, buildId, configId);
i++;
}

ensureAtLeastOneCodeBlockIsVisible(currentCollection);
multiLanguageSets.push(currentCollection);
}

Expand Down

0 comments on commit e01874c

Please sign in to comment.