Skip to content

Commit

Permalink
Tracing documentation update. (helidon-io#4555)
Browse files Browse the repository at this point in the history
Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
  • Loading branch information
tomas-langer authored and romain-grecourt committed Jul 21, 2022
1 parent 1a21597 commit bbc65c1
Show file tree
Hide file tree
Showing 24 changed files with 425 additions and 436 deletions.
91 changes: 46 additions & 45 deletions docs/config/config_reference.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -24,49 +24,50 @@ ifndef::rootdir[:rootdir: {docdir}/..]
The following section lists all configurable types in Helidon.
- xref:{rootdir}/config/io_helidon_security_providers_abac_AbacProvider.adoc[AbacProvider.adoc (security.providers.abac)]
- xref:{rootdir}/config/io_helidon_metrics_api_BaseMetricsSettings.adoc[BaseMetricsSettings.adoc (metrics.api)]
- xref:{rootdir}/config/io_helidon_faulttolerance_Bulkhead.adoc[Bulkhead.adoc (faulttolerance)]
- xref:{rootdir}/config/io_helidon_faulttolerance_CircuitBreaker.adoc[CircuitBreaker.adoc (faulttolerance)]
- xref:{rootdir}/config/io_helidon_metrics_api_ComponentMetricsSettings.adoc[ComponentMetricsSettings.adoc (metrics.api)]
- xref:{rootdir}/config/io_helidon_security_providers_httpauth_ConfigUserStore_ConfigUser.adoc[ConfigUser.adoc (security.providers.httpauth.ConfigUserStore)]
- xref:{rootdir}/config/io_helidon_webserver_cors_CrossOriginConfig.adoc[CrossOriginConfig.adoc (webserver.cors)]
- xref:{rootdir}/config/io_helidon_faulttolerance_Retry_DelayingRetryPolicy.adoc[DelayingRetryPolicy.adoc (faulttolerance.Retry)]
- xref:{rootdir}/config/io_helidon_health_HealthSupport.adoc[HealthSupport.adoc (health)]
- xref:{rootdir}/config/io_helidon_servicecommon_rest_HelidonRestServiceSupport.adoc[HelidonRestServiceSupport.adoc (servicecommon.rest)]
- xref:{rootdir}/config/io_helidon_security_providers_httpauth_HttpBasicAuthProvider.adoc[HttpBasicAuthProvider.adoc (security.providers.httpauth)]
- xref:{rootdir}/config/io_helidon_faulttolerance_Retry_JitterRetryPolicy.adoc[JitterRetryPolicy.adoc (faulttolerance.Retry)]
- xref:{rootdir}/config/io_helidon_common_pki_KeyConfig.adoc[KeyConfig.adoc (common.pki)]
- xref:{rootdir}/config/io_helidon_metrics_api_KeyPerformanceIndicatorMetricsSettings.adoc[KeyPerformanceIndicatorMetricsSettings.adoc (metrics.api)]
- xref:{rootdir}/config/io_helidon_common_pki_KeyConfig_KeystoreBuilder.adoc[KeystoreBuilder.adoc (common.pki.KeyConfig)]
- xref:{rootdir}/config/io_helidon_common_configurable_LruCache.adoc[LruCache.adoc (common.configurable)]
- xref:{rootdir}/config/io_helidon_security_providers_abac_AbacProvider.adoc[AbacProvider (security.providers.abac)]
- xref:{rootdir}/config/io_helidon_metrics_api_BaseMetricsSettings.adoc[BaseMetricsSettings (metrics.api)]
- xref:{rootdir}/config/io_helidon_faulttolerance_Bulkhead.adoc[Bulkhead (faulttolerance)]
- xref:{rootdir}/config/io_helidon_faulttolerance_CircuitBreaker.adoc[CircuitBreaker (faulttolerance)]
- xref:{rootdir}/config/io_helidon_metrics_api_ComponentMetricsSettings.adoc[ComponentMetricsSettings (metrics.api)]
- xref:{rootdir}/config/io_helidon_security_providers_httpauth_ConfigUserStore_ConfigUser.adoc[ConfigUser (security.providers.httpauth.ConfigUserStore)]
- xref:{rootdir}/config/io_helidon_webserver_cors_CrossOriginConfig.adoc[CrossOriginConfig (webserver.cors)]
- xref:{rootdir}/config/io_helidon_faulttolerance_Retry_DelayingRetryPolicy.adoc[DelayingRetryPolicy (faulttolerance.Retry)]
- xref:{rootdir}/config/io_helidon_health_HealthSupport.adoc[HealthSupport (health)]
- xref:{rootdir}/config/io_helidon_servicecommon_rest_HelidonRestServiceSupport.adoc[HelidonRestServiceSupport (servicecommon.rest)]
- xref:{rootdir}/config/io_helidon_security_providers_httpauth_HttpBasicAuthProvider.adoc[HttpBasicAuthProvider (security.providers.httpauth)]
- xref:{rootdir}/config/io_helidon_tracing_jaeger_JaegerTracerBuilder.adoc[JaegerTracer (tracing.jaeger)]
- xref:{rootdir}/config/io_helidon_faulttolerance_Retry_JitterRetryPolicy.adoc[JitterRetryPolicy (faulttolerance.Retry)]
- xref:{rootdir}/config/io_helidon_common_pki_KeyConfig.adoc[KeyConfig (common.pki)]
- xref:{rootdir}/config/io_helidon_metrics_api_KeyPerformanceIndicatorMetricsSettings.adoc[KeyPerformanceIndicatorMetricsSettings (metrics.api)]
- xref:{rootdir}/config/io_helidon_common_pki_KeyConfig_KeystoreBuilder.adoc[KeystoreBuilder (common.pki.KeyConfig)]
- xref:{rootdir}/config/io_helidon_common_configurable_LruCache.adoc[LruCache (common.configurable)]
- xref:{rootdir}/config/io_helidon_media_common_MediaContext.adoc[MediaContext (media.common)]
- xref:{rootdir}/config/io_helidon_microprofile_openapi_MPOpenAPISupport.adoc[MPOpenAPISupport.adoc (microprofile.openapi)]
- xref:{rootdir}/config/io_helidon_metrics_api_MetricsSettings.adoc[MetricsSettings.adoc (metrics.api)]
- xref:{rootdir}/config/io_helidon_metrics_serviceapi_MetricsSupport.adoc[MetricsSupport.adoc (metrics.serviceapi)]
- xref:{rootdir}/config/io_helidon_integrations_micrometer_MicrometerSupport.adoc[MicrometerSupport.adoc (integrations.micrometer)]
- xref:{rootdir}/config/io_helidon_security_providers_oidc_common_OidcConfig.adoc[OidcConfig.adoc (security.providers.oidc.common)]
- xref:{rootdir}/config/io_helidon_security_providers_oidc_OidcProvider.adoc[OidcProvider.adoc (security.providers.oidc)]
- xref:{rootdir}/config/io_helidon_openapi_OpenAPISupport.adoc[OpenAPISupport.adoc (openapi)]
- xref:{rootdir}/config/io_helidon_security_providers_common_OutboundConfig.adoc[OutboundConfig.adoc (security.providers.common)]
- xref:{rootdir}/config/io_helidon_security_providers_common_OutboundTarget.adoc[OutboundTarget.adoc (security.providers.common)]
- xref:{rootdir}/config/io_helidon_common_pki_KeyConfig_PemBuilder.adoc[PemBuilder.adoc (common.pki.KeyConfig)]
- xref:{rootdir}/config/io_helidon_metrics_api_RegistryFilterSettings.adoc[RegistryFilterSettings.adoc (metrics.api)]
- xref:{rootdir}/config/io_helidon_metrics_api_RegistrySettings.adoc[RegistrySettings.adoc (metrics.api)]
- xref:{rootdir}/config/io_helidon_common_configurable_Resource.adoc[Resource.adoc (common.configurable)]
- xref:{rootdir}/config/io_helidon_servicecommon_rest_RestServiceSettings.adoc[RestServiceSettings.adoc (servicecommon.rest)]
- xref:{rootdir}/config/io_helidon_faulttolerance_Retry.adoc[Retry.adoc (faulttolerance)]
- xref:{rootdir}/config/io_helidon_openapi_SEOpenAPISupport.adoc[SEOpenAPISupport.adoc (openapi)]
- xref:{rootdir}/config/io_helidon_common_configurable_ScheduledThreadPoolSupplier.adoc[ScheduledThreadPoolSupplier.adoc (common.configurable)]
- xref:{rootdir}/config/io_helidon_security_Security.adoc[Security.adoc (security)]
- xref:{rootdir}/config/io_helidon_security_SecurityTime.adoc[SecurityTime.adoc (security)]
- xref:{rootdir}/config/io_helidon_webserver_SocketConfiguration.adoc[SocketConfiguration.adoc (webserver)]
- xref:{rootdir}/config/io_helidon_webserver_SocketConfiguration_SocketConfigurationBuilder.adoc[SocketConfigurationBuilder.adoc (webserver.SocketConfiguration)]
- xref:{rootdir}/config/io_helidon_common_configurable_ThreadPoolSupplier.adoc[ThreadPoolSupplier.adoc (common.configurable)]
- xref:{rootdir}/config/io_helidon_faulttolerance_Timeout.adoc[Timeout.adoc (faulttolerance)]
- xref:{rootdir}/config/io_helidon_security_util_TokenHandler.adoc[TokenHandler.adoc (security.util)]
- xref:{rootdir}/config/io_helidon_tracing_Tracer.adoc[Tracer.adoc (tracing)]
- xref:{rootdir}/config/io_helidon_tracing_TracerBuilder.adoc[TracerBuilder.adoc (tracing)]
- xref:{rootdir}/config/io_helidon_webserver_WebServer.adoc[WebServer.adoc (webserver)]
- xref:{rootdir}/config/io_helidon_webserver_WebServerTls.adoc[WebServerTls.adoc (webserver)]
- xref:{rootdir}/config/io_smallrye_openapi_api_OpenApiConfig.adoc[io_smallrye_openapi_api_OpenApiConfig.adoc]
- xref:{rootdir}/config/io_helidon_microprofile_openapi_MPOpenAPISupport.adoc[MPOpenAPISupport (microprofile.openapi)]
- xref:{rootdir}/config/io_helidon_metrics_api_MetricsSettings.adoc[MetricsSettings (metrics.api)]
- xref:{rootdir}/config/io_helidon_metrics_serviceapi_MetricsSupport.adoc[MetricsSupport (metrics.serviceapi)]
- xref:{rootdir}/config/io_helidon_integrations_micrometer_MicrometerSupport.adoc[MicrometerSupport (integrations.micrometer)]
- xref:{rootdir}/config/io_helidon_security_providers_oidc_common_OidcConfig.adoc[OidcConfig (security.providers.oidc.common)]
- xref:{rootdir}/config/io_helidon_security_providers_oidc_OidcProvider.adoc[OidcProvider (security.providers.oidc)]
- xref:{rootdir}/config/io_helidon_openapi_OpenAPISupport.adoc[OpenAPISupport (openapi)]
- xref:{rootdir}/config/io_helidon_security_providers_common_OutboundConfig.adoc[OutboundConfig (security.providers.common)]
- xref:{rootdir}/config/io_helidon_security_providers_common_OutboundTarget.adoc[OutboundTarget (security.providers.common)]
- xref:{rootdir}/config/io_helidon_common_pki_KeyConfig_PemBuilder.adoc[PemBuilder (common.pki.KeyConfig)]
- xref:{rootdir}/config/io_helidon_metrics_api_RegistryFilterSettings.adoc[RegistryFilterSettings (metrics.api)]
- xref:{rootdir}/config/io_helidon_metrics_api_RegistrySettings.adoc[RegistrySettings (metrics.api)]
- xref:{rootdir}/config/io_helidon_common_configurable_Resource.adoc[Resource (common.configurable)]
- xref:{rootdir}/config/io_helidon_servicecommon_rest_RestServiceSettings.adoc[RestServiceSettings (servicecommon.rest)]
- xref:{rootdir}/config/io_helidon_faulttolerance_Retry.adoc[Retry (faulttolerance)]
- xref:{rootdir}/config/io_helidon_openapi_SEOpenAPISupport.adoc[SEOpenAPISupport (openapi)]
- xref:{rootdir}/config/io_helidon_common_configurable_ScheduledThreadPoolSupplier.adoc[ScheduledThreadPoolSupplier (common.configurable)]
- xref:{rootdir}/config/io_helidon_security_Security.adoc[Security (security)]
- xref:{rootdir}/config/io_helidon_security_SecurityTime.adoc[SecurityTime (security)]
- xref:{rootdir}/config/io_helidon_webserver_SocketConfiguration.adoc[SocketConfiguration (webserver)]
- xref:{rootdir}/config/io_helidon_webserver_SocketConfiguration_SocketConfigurationBuilder.adoc[SocketConfigurationBuilder (webserver.SocketConfiguration)]
- xref:{rootdir}/config/io_helidon_common_configurable_ThreadPoolSupplier.adoc[ThreadPoolSupplier (common.configurable)]
- xref:{rootdir}/config/io_helidon_faulttolerance_Timeout.adoc[Timeout (faulttolerance)]
- xref:{rootdir}/config/io_helidon_security_util_TokenHandler.adoc[TokenHandler (security.util)]
- xref:{rootdir}/config/io_helidon_tracing_TracerBuilder.adoc[TracerBuilder (tracing)]
- xref:{rootdir}/config/io_helidon_webserver_WebServer.adoc[WebServer (webserver)]
- xref:{rootdir}/config/io_helidon_webserver_WebServerTls.adoc[WebServerTls (webserver)]
- xref:{rootdir}/config/io_helidon_tracing_zipkin_ZipkinTracerBuilder.adoc[ZipkinTracer (tracing.zipkin)]
- xref:{rootdir}/config/io_smallrye_openapi_api_OpenApiConfig.adoc[io_smallrye_openapi_api_OpenApiConfig]
8 changes: 8 additions & 0 deletions docs/config/io_helidon_tracing_Tracer.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,10 @@ Optional configuration options:
|key |type |default value |description
|`boolean-tags` |Map&lt;string, boolean&gt; |{nbsp} |Tracer level tags that get added to all reported spans.
|`client-cert-pem` |xref:{rootdir}/config/io_helidon_common_configurable_Resource.adoc[Resource] |{nbsp} |Certificate of client in PEM format.
|`enabled` |boolean |`true` |When enabled, tracing will be sent. If enabled is false, tracing should
use a no-op tracer.
|`exporter-timeout-millis` |Duration |`10000` |Timeout of exporter requests.
|`global` |boolean |`true` |When enabled, the created instance is also registered as a global tracer.
|`host` |string |{nbsp} |Host to use to connect to tracing collector.
Default is defined by each tracing integration.
Expand All @@ -57,10 +59,16 @@ Optional configuration options:
Default is defined by each tracing integration.
|`port` |int |{nbsp} |Port to use to connect to tracing collector.
Default is defined by each tracing integration.
|`private-key-pem` |xref:{rootdir}/config/io_helidon_common_configurable_Resource.adoc[Resource] |{nbsp} |Private key in PEM format.
|`protocol` |string |{nbsp} |Protocol to use (such as `http` or `https`) to connect to tracing collector.
Default is defined by each tracing integration.
|`sampler-param` |Number |`1` |The sampler parameter (number).
|`sampler-type` |SamplerType (CONSTANT, RATIO) |`CONSTANT` |Sampler type.
See <a href="https://www.jaegertracing.io/docs/latest/sampling/#client-sampling-configuration">Sampler types</a>.
|`service` |string |{nbsp} |Service name of the traced service.
|`tags` |Map&lt;string, string&gt; |{nbsp} |Tracer level tags that get added to all reported spans.
|`trusted-cert-pem` |xref:{rootdir}/config/io_helidon_common_configurable_Resource.adoc[Resource] |{nbsp} |Trusted certificates in PEM format.
|===
Expand Down
2 changes: 1 addition & 1 deletion docs/config/io_helidon_tracing_TracerBuilder.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ include::{rootdir}/includes/attributes.adoc[]
// tag::config[]
OpenTracing tracer configuration.
Tracer configuration.
Type: link:{javadoc-base-url}/io.helidon.tracing/io/helidon/tracing/TracerBuilder.html[io.helidon.tracing.TracerBuilder]
Expand Down
75 changes: 75 additions & 0 deletions docs/config/io_helidon_tracing_jaeger_JaegerTracerBuilder.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
///////////////////////////////////////////////////////////////////////////////

Copyright (c) 2022 Oracle and/or its affiliates.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

///////////////////////////////////////////////////////////////////////////////
ifndef::rootdir[:rootdir: {docdir}/..]
:description: Configuration of io.helidon.tracing.Tracer
:keywords: helidon, config, io.helidon.tracing.Tracer
:basic-table-intro: The table below lists the configuration keys that configure io.helidon.tracing.Tracer
include::{rootdir}/includes/attributes.adoc[]
= Tracer (tracing) Configuration
// tag::config[]
Jaeger tracer configuration.
Type: link:{javadoc-base-url}/io.helidon.tracing/io/helidon/tracing/Tracer.html[io.helidon.tracing.Tracer]
This is a standalone configuration type, prefix from configuration root: `tracing`
== Configuration options
Optional configuration options:
[cols="3,3,2,5a"]
|===
|key |type |default value |description
|`boolean-tags` |Map&lt;string, boolean&gt; |{nbsp} |Tracer level tags that get added to all reported spans.
|`client-cert-pem` |xref:{rootdir}/config/io_helidon_common_configurable_Resource.adoc[Resource] |{nbsp} |Certificate of client in PEM format.
|`enabled` |boolean |`true` |When enabled, tracing will be sent. If enabled is false, tracing should
use a no-op tracer.
|`exporter-timeout-millis` |Duration |`10000` |Timeout of exporter requests.
|`global` |boolean |`true` |When enabled, the created instance is also registered as a global tracer.
|`host` |string |{nbsp} |Host to use to connect to tracing collector.
Default is defined by each tracing integration.
|`int-tags` |Map&lt;string, int&gt; |{nbsp} |Tracer level tags that get added to all reported spans.
|`path` |string |{nbsp} |Path on the collector host to use when sending data to tracing collector.
Default is defined by each tracing integration.
|`port` |int |{nbsp} |Port to use to connect to tracing collector.
Default is defined by each tracing integration.
|`private-key-pem` |xref:{rootdir}/config/io_helidon_common_configurable_Resource.adoc[Resource] |{nbsp} |Private key in PEM format.
|`protocol` |string |{nbsp} |Protocol to use (such as `http` or `https`) to connect to tracing collector.
Default is defined by each tracing integration.
|`sampler-param` |Number |`1` |The sampler parameter (number).
|`sampler-type` |SamplerType (CONSTANT, RATIO) |`CONSTANT` |Sampler type.
See <a href="https://www.jaegertracing.io/docs/latest/sampling/#client-sampling-configuration">Sampler types</a>.
|`service` |string |{nbsp} |Service name of the traced service.
|`tags` |Map&lt;string, string&gt; |{nbsp} |Tracer level tags that get added to all reported spans.
|`trusted-cert-pem` |xref:{rootdir}/config/io_helidon_common_configurable_Resource.adoc[Resource] |{nbsp} |Trusted certificates in PEM format.
|===
// end::config[]
69 changes: 69 additions & 0 deletions docs/config/io_helidon_tracing_zipkin_ZipkinTracerBuilder.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
///////////////////////////////////////////////////////////////////////////////

Copyright (c) 2022 Oracle and/or its affiliates.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

///////////////////////////////////////////////////////////////////////////////
ifndef::rootdir[:rootdir: {docdir}/..]
:description: Configuration of io.opentracing.Tracer
:keywords: helidon, config, io.opentracing.Tracer
:basic-table-intro: The table below lists the configuration keys that configure io.opentracing.Tracer
include::{rootdir}/includes/attributes.adoc[]
= io.opentracing.Tracer Configuration
// tag::config[]
Zipkin tracer configuration
Type: io.opentracing.Tracer
This is a standalone configuration type, prefix from configuration root: `tracing`
== Configuration options
Optional configuration options:
[cols="3,3,2,5a"]
|===
|key |type |default value |description
|`api-version` |Version (V1, V2) |`V2` |Version of Zipkin API to use.
Defaults to Version#V2.
|`boolean-tags` |Map&lt;string, boolean&gt; |{nbsp} |Tracer level tags that get added to all reported spans.
|`enabled` |boolean |`true` |When enabled, tracing will be sent. If enabled is false, tracing should
use a no-op tracer.
|`global` |boolean |`true` |When enabled, the created instance is also registered as a global tracer.
|`host` |string |{nbsp} |Host to use to connect to tracing collector.
Default is defined by each tracing integration.
|`int-tags` |Map&lt;string, int&gt; |{nbsp} |Tracer level tags that get added to all reported spans.
|`path` |string |{nbsp} |Path on the collector host to use when sending data to tracing collector.
Default is defined by each tracing integration.
|`port` |int |{nbsp} |Port to use to connect to tracing collector.
Default is defined by each tracing integration.
|`protocol` |string |{nbsp} |Protocol to use (such as `http` or `https`) to connect to tracing collector.
Default is defined by each tracing integration.
|`service` |string |{nbsp} |Service name of the traced service.
|`tags` |Map&lt;string, string&gt; |{nbsp} |Tracer level tags that get added to all reported spans.
|===
// end::config[]
6 changes: 3 additions & 3 deletions docs/includes/metrics/prometheus-exemplar-support.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ include::{rootdir}/includes/dependencies.adoc[]
</dependency>
----
Also, include the Helidon integration module for a tracing implementation...for example
Also, include the Helidon integration module for a tracing implementation, see
ifdef::se-flavor[]
xref:{rootdir}/se/tracing/zipkin.adoc[Helidon Zipkin]
xref:{rootdir}/se/tracing.adoc#zipkin-tracing[Helidon Zipkin]
endif::[]
ifdef::mp-flavor[]
xref:{rootdir}/mp/tracing.adoc#zipkin-tracing[Helidon Zipkin]:
Expand All @@ -72,7 +72,7 @@ include::{rootdir}/includes/tracing/tracer-zipkin.adoc[tag=zipkin-dependency]
Add the Helidon tracing component itself:
ifdef::se-flavor[]
include::{rootdir}/se/tracing/tracing.adoc[tag=tracing-dependency]
include::{rootdir}/se/tracing.adoc[tag=tracing-dependency]
endif::[]
ifdef::mp-flavor[]
include::{rootdir}/mp/tracing.adoc[tag=tracing-dependency]
Expand Down
Loading

0 comments on commit bbc65c1

Please sign in to comment.