Contents
Overview
Distributed tracing is a critical feature of micro-service based applications, since it traces workflow both within a service and across multiple services. This provides insight to sequence and timing data for specific blocks of work, which helps you identify performance and operational issues. Helidon MP includes support for distributed tracing through the OpenTracing API. Tracing is integrated with WebServer, gRPC Server, and Security.
Maven Coordinates
To enable MicroProfile Tracing either add a dependency on the helidon-microprofile bundle or add the following dependency to your project’s pom.xml (see Managing Dependencies).
<dependency>
<groupId>io.helidon.microprofile.tracing</groupId>
<artifactId>helidon-microprofile-tracing</artifactId>
</dependency>Usage
This section explains a few concepts that you need to understand before you get started with tracing.
In the context of this document, a service is synonymous with an application.
A span is the basic unit of work done within a single service, on a single host. Every span has a name, starting timestamp, and duration. For example, the work done by a REST endpoint is a span. A span is associated to a single service, but its descendants can belong to different services and hosts.
A trace contains a collection of spans from one or more services, running on one or more hosts. For example, if you trace a service endpoint that calls another service, then the trace would contain spans from both services. Within a trace, spans are organized as a directed acyclic graph (DAG) and can belong to multiple services, running on multiple hosts. The OpenTracing Data Model describes the details at The OpenTracing Semantic Specification. Spans are automatically created by Helidon as needed during execution of the REST request. Additional spans can be added through MP annotation
@Tracedor through OpenTracing APIs.
Traced spans
The following table lists all spans traced by Helidon components:
| component | span name | description |
|---|---|---|
web-server | HTTP Request | The overall span of the Web Server from request initiation until response Note that in Zipkin the name is replaced with jax-rs span name if jax-rs tracing is used. |
web-server | content-read | Span for reading the request entity |
web-server | content-write | Span for writing the response entity |
security | security | Processing of request security |
security | security:atn | Span for request authentication |
security | security:atz | Span for request authorization |
security | security:response | Processing of response security |
security | security:outbound | Processing of outbound security |
jax-rs | A generated name | Span for the resource method invocation, name is generated from class and method name |
jax-rs | jersey-client-call | Span for outbound client call |
Some of these spans log to the span. These log events can be (in most cases) configured:
| span name | log name | configurable | enabled by default | description |
|---|---|---|---|---|
HTTP Request | handler.class | YES | YES | Each handler has its class and event logged |
security | status | YES | YES | Logs either "status: PROCEED" or "status: DENY" |
security:atn | security.user | YES | NO | The username of the user if logged in |
security:atn | security.service | YES | NO | The name of the service if logged in |
security:atn | status | YES | YES | Logs the status of security response (such as SUCCESS) |
security:atz | status | YES | YES | Logs the status of security response (such as SUCCESS) |
security:outbound | status | YES | YES | Logs the status of security response (such as SUCCESS) |
There are also tags that are set by Helidon components. These are not configurable.
| span name | tag name | description |
|---|---|---|
HTTP Request | component | name of the component - helidon-webserver, or jaxrs when using MP |
HTTP Request | http.method | HTTP method of the request, such as GET, POST |
HTTP Request | http.status_code | HTTP status code of the response |
HTTP Request | http.url | The path of the request (for SE without protocol, host and port) |
HTTP Request | error | If the request ends in error, this tag is set to true, usually accompanied by logs with details |
content-read | requested.type | Type (class) of the requested entity (if entity is read) |
content-write | response.type | Type (class) of the entity being sent (if entity is sent) |
security | security.id | ID of the security context created for this request (if security is used) |
jersey-client-call | http.method | HTTP method of the client request |
jersey-client-call | http.status_code | HTTP status code of client response |
jersey-client-call | http.url | Full URL of the request (such as http://localhost:8080/greet) |
Configuration
Enabling and Disabling Tracing
You can configure a custom service name using the tracing.service configuration property. If this property is undefined, name is created from JAX-RS Application name, or Helidon MP is used if no application is defined.
Jaeger tracer configuration.
Type: io.helidon.tracing.Tracer
This is a standalone configuration type, prefix from configuration root: tracing
Configuration options
| key | type | default value | description |
|---|---|---|---|
boolean-tags | Map<string, boolean> | Tracer level tags that get added to all reported spans. | |
client-cert-pem | 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 | Host to use to connect to tracing collector. Default is defined by each tracing integration. | |
int-tags | Map<string, int> | Tracer level tags that get added to all reported spans. | |
path | string | Path on the collector host to use when sending data to tracing collector. Default is defined by each tracing integration. | |
port | int | Port to use to connect to tracing collector. Default is defined by each tracing integration. | |
private-key-pem | Private key in PEM format. | ||
protocol | string | Protocol to use (such as | |
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 | Service name of the traced service. | |
tags | Map<string, string> | Tracer level tags that get added to all reported spans. | |
trusted-cert-pem | Trusted certificates in PEM format. |
To disable Helidon tracing for WebServer and security:
tracing.components.web-server.enabled=false
tracing.components.security.enabled=falseTo disable MP Tracing per specification:
mp.opentracing.server.skip-pattern=.*Tracing configuration can be defined in application.yaml file.
tracing:
paths:
- path: "/favicon.ico"
enabled: false
- path: "/metrics"
enabled: false
- path: "/health"
enabled: false
components:
web-server:
spans:
- name: "HTTP Request"
logs:
- name: "content-write"
enabled: falseControlling Tracing Output
For WebServer we have path-based support for configuring tracing, in addition to the configuration described above.
Path configuration can use any path string supported by the WebServer. The configuration itself has the same possibilities as traced configuration described above. The path specific configuration will be merged with global configuration (path is the "newer" configuration, global is the "older")
Renaming top level span using request properties
To have a better overview in the search pane of a tracer, you can customize the top-level span name using configuration.
Example:
tracing.components.web-server.spans.0.name="HTTP Request"
tracing.components.web-server.spans.0.new-name: "HTTP %1$s %2$s"This is supported ONLY for the span named "HTTP Request" on component "web-server".
Parameters provided:
- Method - HTTP method
- Path - path of the request (such as '/greet')
- Query - query of the request (may be null)
Examples
The examples in this guide demonstrate how to integrate tracing with Helidon, how to view traces, how to trace across multiple services, and how to integrate tracing with Kubernetes. All examples use Zipkin and traces will be viewed using both the Zipkin API and UI.
Set Up Zipkin
First, you need to run the Zipkin tracer. Helidon will communicate with this tracer at runtime.
docker run -d --name zipkin -p 9411:9411 openzipkin/zipkin - Run the Zipkin docker image named
openzipkin/zipkin.
curl http://localhost:9411/health - Invoke the Zipkin REST API to check the Zipkin server health.
{
"status": "UP",
"zipkin": {
"status": "UP",
"details": {
"InMemoryStorage{}": {
"status": "UP"
}
}
}
}- All
statusfields should beUP.
Enable Tracing in the Helidon Application
Update the pom.xml file and add the following Zipkin dependency to the <dependencies> section (not <dependencyManagement>). This will enable Helidon to use Zipkin at the default host and port, localhost:9411.
pom.xml:<dependency>
<groupId>io.helidon.tracing</groupId>
<artifactId>helidon-tracing-zipkin</artifactId>
</dependency>All spans sent by Helidon to Zipkin need to be associated with a service. Specify the service name below.
META-INF/microprofile-config.properties:tracing.service=helidon-mp-1mvn package -DskipTests=true
java -jar target/helidon-quickstart-mp.jarcurl http://localhost:8080/greet{
"message": "Hello World!"
}View Tracing Using Zipkin REST API
Because tracing is now enabled, the previous /greet endpoint invocation resulted in a new trace being created. Let’s get the trace data that was generated using the Zipkin API. First, get the service information.
Helidon automatically enables tracing for JAX-RS resources methods so you don’t need to use annotations with JAX-RS. See MicroProfile OpenTracing for more details.
curl http://localhost:9411/api/v2/services["helidon-mp-1"] - This is the tracing service name specified in
META-INF/microprofile-config.properties.
Each span used by a service has a name, which is unique within a trace. If you invoke the /greet endpoint multiple times, you will still get the same set of names.
curl -X GET "http://localhost:9411/api/v2/spans?serviceName=helidon-mp-1" -H "accept: application/json" - Get the span names for the
helidon-mp-1service.
[
"content-read",
"content-write",
"get:io.helidon.examples.quickstart.mp.greetresource.getdefaultmessage",
"security",
"security:atn",
"security:atz",
"security:response"
]- These are the span names. If you invoke the
/greetendpoint again, then invoke the/spansendpoint, you will get the same response.
Next, get the contents of the trace as shown below. Notice that each span has a parentId field, except the get:io.helidon.examples.quickstart.mp.greetresource.getdefaultmessage span, which is the root.
curl -X GET "http://localhost:9411/api/v2/traces?serviceName=helidon-mp-1&limit=1" -H "accept: application/json" - Get the newest trace only, using the
limit=1query param. There are other query params that let you restrict results to a specific time window.
[
[
{
"traceId": "2e0af8866efdef35",
"parentId": "2e0af8866efdef35",
"id": "b5d61690f230fde4",
"kind": "SERVER",
"name": "content-read",
"timestamp": 1568077339998659,
"duration": 41,
"localEndpoint": {
"serviceName": "helidon-mp-1",
"ipv4": "192.168.1.115"
},
"tags": {
"requested.type": "java.io.InputStream"
}
}
]
]- The request will return seven spans, one for each name, along with an unnamed JSON node, which has the status.
View Tracing Using Zipkin UI
The tracing output data is verbose and can be difficult to interpret using the REST API, especially since it represents a structure of spans. Zipkin provides a web-based UI at http://localhost:9411/zipkin, where you can see a visual representation of the same data and the relationship between spans within a trace. If you see a Lens UI button at the top center then click on it and it will take you to the specific UI used by this guide.
Click on the UI refresh button (the search icon) as shown in the image below. Notice that you can change the look-back time to restrict the trace list.

The image below shows the trace summary, including start time and duration of each trace. There are two traces, each one generated in response to a curl http://localhost:8080/greet invocation. The oldest trace will have a much longer duration since there is one-time initialization that occurs.

Click on a trace and you will see the trace detail page where the spans are listed. You can clearly see the root span and the relationship among all the spans in the trace, along with timing information.

A parent span might not depend on the result of the child. This is called a FollowsFrom reference, see Open Tracing Semantic Spec. Note that the last span that writes the response after the root span ends falls into this category.
You can examine span details by clicking on the span row. Refer to the image below, which shows the security span details, including timing information. You can see times for each space relative to the root span. These rows are annotated with Server Start and Server Finish, as shown in the third column.

Enable Tracing on CDI Beans
So far in this tutorial you have used tracing with JAX-RS without needing to annotate. You can enable tracing on other CDI beans, either at the class level or at the method level, as shown by the following examples.
Tracing at the Method Level
To trace at the method level, you just annotate a method with @Traced.
GreetingProvider class; 1) Add a new import and 2) Add the @Traced annotation to the getMessage method:import org.eclipse.microprofile.opentracing.Traced;
@Traced
String getMessage() {
return message.get();
}- Import the
Tracedannotation. - Enable tracing for getMessage.
curl http://localhost:8080/greet
curl -X GET "http://localhost:9411/api/v2/spans?serviceName=helidon-mp-1" -H "accept: application/json"[
"content-read",
"content-write",
"dosomework",
"get:io.helidon.examples.quickstart.mp.greetresource.getdefaultmessage",
"io.helidon.examples.quickstart.mp.greetingprovider.getmessage",
"security",
"security:atn",
"security:atz",
"security:response"
]- There is a new span name for the
getmessagemethod, since your code called that method during the invocation of/greet.
Click the back button on your browser, then click on the UI refresh button to see the new trace. Select the newest trace in the list to see the trace detail page like the one below. Notice the new span named io.helidon.examples.quickstart.mp.greetingprovider.getmessage.
getmessage
Tracing at the Class Level
To trace at the class level, annotate the class with @Traced. This will enable tracing for all class methods, except for the constructor and private methods.
Update the
GreetingProviderclassAdd @Traced to the
GreetingProviderclassRemove @Traced from the
getMessagemethod
@Traced
@ApplicationScoped
public class GreetingProvider {
String getMessage() {
return message.get();
}
}- This will enable tracing for all class methods, except for the constructor and methods that are private.
- Remove @Traced for the
getMessagemethod.
curl http://localhost:8080/greet
curl -X GET "http://localhost:9411/api/v2/spans?serviceName=helidon-mp-1" -H "accept: application/json"[
"io.helidon.examples.quickstart.mp.greetingprovider.getmessage"
]- The service has the same set of span names as above, since
getmessagewas the only method called in this bean.
Next, invoke HTTP PUT to change the greeting, which will cause setMessage to be called.
curl -i -X PUT -H "Content-Type: application/json" -d '{"greeting": "Hi"}' http://localhost:8080/greet/greeting
curl -X GET "http://localhost:9411/api/v2/spans?serviceName=helidon-mp-1" -H "accept: application/json"- Invoke the endpoint to change the greeting.
[
"content-read",
"content-write",
"get:io.helidon.examples.quickstart.mp.greetresource.getdefaultmessage",
"io.helidon.examples.quickstart.mp.greetingprovider.getmessage",
"io.helidon.examples.quickstart.mp.greetingprovider.setmessage",
"put:io.helidon.examples.quickstart.mp.greetresource.updategreeting",
"security",
"security:atn",
"security:atz",
"security:response"
]- The
GreetingProvider.setmessagemethod was traced since you enabled class level tracing. - The JAX-RS method
GreetResource.updategreetingwas traced automatically by Helidon.
You can refresh the UI view and drill down the trace to see the new spans.
Methods invoked directly by your code are not enabled for tracing, even if you explicitly annotate them with @Traced. Tracing only works for methods invoked on CDI beans. See the example below.
GreetingProvider class with the following code:@ApplicationScoped
public class GreetingProvider {
private final AtomicReference<String> message = new AtomicReference<>();
@Inject
public GreetingProvider(@ConfigProperty(name = "app.greeting") String message) {
this.message.set(message);
}
@Traced
String getMessage() {
return getMessage2();
}
@Traced
String getMessage2() {
return message.get();
}
void setMessage(String message) {
this.message.set(message);
}
}- The
getMessagemethod will be traced since it is externally invoked byGreetResource. - The
getMessage2method will not be traced, even with the @Traced annotation, since it is called internally bygetMessage.
curl http://localhost:8080/greet
curl -X GET "http://localhost:9411/api/v2/spans?serviceName=helidon-mp-1" -H "accept: application/json"[
"io.helidon.examples.quickstart.mp.greetingprovider.getmessage"
]- The
getMessagemethod is traced, butgetMessage2is not.
Trace Across Services
Helidon automatically traces across services as long as the services use the same tracer, for example, the same instance of Zipkin. This means a single trace can include spans from multiple services and hosts. OpenTracing uses a SpanContext to propagate tracing information across process boundaries. When you make client API calls, Helidon will internally call OpenTracing APIs to propagate the SpanContext. There is nothing you need to do in your application to make this work.
To demonstrate distributed tracing, you will need to create a second project, where the server listens on port 8081. Create a new root directory to hold this new project, then do the following steps, similar to what you did at the start of this guide:
Create a second service
mvn -U archetype:generate -DinteractiveMode=false \
-DarchetypeGroupId=io.helidon.archetypes \
-DarchetypeArtifactId=helidon-quickstart-mp \
-DarchetypeVersion=3.2.16 \
-DgroupId=io.helidon.examples \
-DartifactId=helidon-quickstart-mp-2 \
-Dpackage=io.helidon.examples.quickstart.mphelidon-quickstart-mp directory:cd helidon-quickstart-mp-2pom.xml:<dependency>
<groupId>io.helidon.tracing</groupId>
<artifactId>helidon-tracing-zipkin</artifactId>
</dependency>META-INF/microprofile-config.properties with the following:app.greeting=Hello From MP-2
tracing.service=helidon-mp-2
# Microprofile server properties
server.port=8081mvn package -DskipTests=true
java -jar target/helidon-quickstart-mp-2.jarcurl http://localhost:8081/greet{
"message": "Hello From MP-2 World!"
}Modify the first service
Once you have validated that the second service is running correctly, you need to modify the original application to call it.
GreetResource class with the following code:package io.helidon.examples.quickstart.mp;
import java.util.Collections;
import jakarta.enterprise.context.RequestScoped;
import jakarta.inject.Inject;
import jakarta.json.Json;
import jakarta.json.JsonBuilderFactory;
import jakarta.json.JsonObject;
import jakarta.ws.rs.GET;
import jakarta.ws.rs.Path;
import jakarta.ws.rs.Produces;
import jakarta.ws.rs.client.WebTarget;
import jakarta.ws.rs.core.MediaType;
import org.glassfish.jersey.server.Uri;
@Path("/greet")
@RequestScoped
public class GreetResource {
@Uri("http://localhost:8081/greet")
private WebTarget target;
private static final JsonBuilderFactory JSON = Json.createBuilderFactory(Collections.emptyMap());
private final GreetingProvider greetingProvider;
@Inject
public GreetResource(GreetingProvider greetingConfig) {
this.greetingProvider = greetingConfig;
}
@GET
@Produces(MediaType.APPLICATION_JSON)
public JsonObject getDefaultMessage() {
return createResponse("World");
}
@GET
@Path("/outbound")
public JsonObject outbound() {
return target.request().accept(MediaType.APPLICATION_JSON_TYPE).get(JsonObject.class);
}
private JsonObject createResponse(String who) {
String msg = String.format("%s %s!", greetingProvider.getMessage(), who);
return JSON.createObjectBuilder().add("message", msg).build();
}
}- This is the
WebTargetneeded to send a request to the second service at port8081. - This is the new endpoint that will call the second service.
curl -i http://localhost:8080/greet/outbound - The request went to the service on
8080, which then invoked the service at8081to get the greeting.
{
"message": "Hello From MP-2 World!"
}- Notice the greeting came from the second service.
Refresh the Zipkin UI trace listing page and notice that there is a trace across two services.

Click on the trace with two services to see the detail view.

In the image above, you can see that the trace includes spans from two services. You will notice there is a gap before the sixth span, which is a get operation. This is a one-time client initialization delay. Run the /outbound curl command again and look at the new trace to see that the delay no longer exists.
You can now stop your second service, it is no longer used in this guide.
Integration with Kubernetes
The following example demonstrate how to use Zipkin from a Helidon application running in Kubernetes.
application.yaml:tracing:
host: "zipkin"docker build -t helidon-tracing-mp .Deploy Zipkin into Kubernetes
zipkin.yaml, with the following contents:apiVersion: v1
kind: Service
metadata:
name: zipkin
spec:
ports:
- port: 9411
protocol: TCP
selector:
app: zipkin
---
kind: Pod
apiVersion: v1
metadata:
name: zipkin
labels:
app: zipkin
spec:
containers:
- name: zipkin
image: openzipkin/zipkin
imagePullPolicy: IfNotPresent
ports:
- containerPort: 9411kubectl apply -f ./zipkin.yamlkubectl expose pod zipkin --name=zipkin-external --port=9412 --target-port=9411 --type=LoadBalancer - Create a service so that you can access the Zipkin UI.
Navigate to http://localhost:9412/zipkin to validate that you can access Zipkin running in Kubernetes. It may take a few seconds before it is ready.
Deploy Your Helidon Application into Kubernetes
tracing.yaml, with the following contents:kind: Service
apiVersion: v1
metadata:
name: helidon-tracing
labels:
app: helidon-tracing
spec:
type: NodePort
selector:
app: helidon-tracing
ports:
- port: 8080
targetPort: 8080
name: http
---
kind: Deployment
apiVersion: apps/v1
metadata:
name: helidon-tracing
spec:
replicas: 1
selector:
matchLabels:
app: helidon-tracing
template:
metadata:
labels:
app: helidon-tracing
version: v1
spec:
containers:
- name: helidon-tracing
image: helidon-tracing-mp
imagePullPolicy: IfNotPresent
ports:
- containerPort: 8080- A service of type
NodePortthat serves the default routes on port8080. - A deployment with one replica of a pod.
kubectl apply -f ./tracing.yamlAccess Your Application and the Zipkin Trace
kubectl get service/helidon-tracingNAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
helidon-tracing NodePort 10.99.159.2 <none> 8080:31143/TCP 8s - A service of type
NodePortthat serves the default routes on port31143.
31143, your port will likely be different:curl http://localhost:31143/greet{
"message": "Hello World!"
}Access the Zipkin UI at http://localhost:9412/zipkin and click on the refresh icon to see the trace that was just created.
Cleanup
You can now delete the Kubernetes resources that were just created during this example.
kubectl delete -f ./zipkin.yaml
kubectl delete -f ./tracing.yaml
kubectl delete service zipkin-external
docker rm -f zipkinCreating Custom Spans
Helidon MP fully supports MicroProfile OpenTracing. You can add custom spans using @Traced annotation on methods of CDI beans.
Note for invoking methods on same class: If you invoke a method on the same class, @Traced annotation would be ignored, as it is not invoked through a CDI proxy and as such cannot be intercepted. To make sure @Traced is honored, use it on JAX-RS resource methods and on CDI bean methods used from other beans.
Trace Propagation Across Services
Automated trace propagation is supported currently only with Jersey client.
Tracing propagation works automatically as long as you run within the scope of Helidon MP and use Helidon components to invoke external services.
Manual handling of traces in Jersey Client
There is an option to provide SpanContext programmatically (such as when writing a command line application that starts the span manually).
You can either configure the span context as the active span, or explicitly define it as client property.
import static io.helidon.tracing.jersey.client.ClientTracingFilter.CURRENT_SPAN_CONTEXT_PROPERTY_NAME;
import static io.helidon.tracing.jersey.client.ClientTracingFilter.TRACER_PROPERTY_NAME;
Response response = client.target(serviceEndpoint)
.request()
// tracer should be provided unless available as GlobalTracer
.property(TRACER_PROPERTY_NAME, tracer)
.property(CURRENT_SPAN_CONTEXT_PROPERTY_NAME, spanContext)
.get();Additional Information
Zipkin Tracing
<dependency>
<groupId>io.helidon.tracing</groupId>
<artifactId>helidon-tracing-zipkin</artifactId>
</dependency>Configuring Zipkin
Zipkin tracer configuration
Type: io.opentracing.Tracer
This is a standalone configuration type, prefix from configuration root: tracing
Configuration options
| key | type | default value | description |
|---|---|---|---|
api-version | Version (V1, V2) | V2 | Version of Zipkin API to use. Defaults to Version#V2. |
boolean-tags | Map<string, boolean> | 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 | Host to use to connect to tracing collector. Default is defined by each tracing integration. | |
int-tags | Map<string, int> | Tracer level tags that get added to all reported spans. | |
path | string | Path on the collector host to use when sending data to tracing collector. Default is defined by each tracing integration. | |
port | int | Port to use to connect to tracing collector. Default is defined by each tracing integration. | |
protocol | string | Protocol to use (such as | |
service | string | Service name of the traced service. | |
tags | Map<string, string> | Tracer level tags that get added to all reported spans. |
The following is an example of a Zipkin configuration, specified in the YAML format.
tracing:
service: "helidon-service"
protocol: "https"
host: "zipkin"
port: 9987
api-version: 1
# this is the default path for API version 2
path: "/api/v2/spans"
tags:
tag1: "tag1-value"
tag2: "tag2-value"
boolean-tags:
tag3: true
tag4: false
int-tags:
tag5: 145
tag6: 741Example of Zipkin trace:

Jaeger Tracing
<dependency>
<groupId>io.helidon.tracing</groupId>
<artifactId>helidon-tracing-jaeger</artifactId>
</dependency>Configuring Jaeger
Jaeger changed its client implementation, so some Jaeger settings exposed by earlier releases of Helidon are no longer available. Please note the currently-supported settings in the table below.
Jaeger tracer configuration.
Type: io.helidon.tracing.Tracer
This is a standalone configuration type, prefix from configuration root: tracing
Configuration options
| key | type | default value | description |
|---|---|---|---|
boolean-tags | Map<string, boolean> | Tracer level tags that get added to all reported spans. | |
client-cert-pem | 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 | Host to use to connect to tracing collector. Default is defined by each tracing integration. | |
int-tags | Map<string, int> | Tracer level tags that get added to all reported spans. | |
path | string | Path on the collector host to use when sending data to tracing collector. Default is defined by each tracing integration. | |
port | int | Port to use to connect to tracing collector. Default is defined by each tracing integration. | |
private-key-pem | Private key in PEM format. | ||
propagation |
| addPropagation | Propagation type ( |
protocol | string | Protocol to use (such as | |
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 | Service name of the traced service. | |
tags | Map<string, string> | Tracer level tags that get added to all reported spans. | |
trusted-cert-pem | Trusted certificates in PEM format. |
The following is an example of a Jaeger configuration, specified in the YAML format.
The the Jaeger OpenTelemetry client uses port 14250, but you can override this value if needed. The default is defined by each tracing integration.
tracing:
service: "helidon-full-http"
protocol: "https"
host: "jaeger"
port: 14250Jaeger Tracing Metrics
As the Jaeger Tracing section describes, you can use Jaeger tracing in your Helidon application.