You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/main/asciidoc/opentelemetry-tracing.adoc
+56-29Lines changed: 56 additions & 29 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -108,55 +108,82 @@ endpoint will be traced without any required code changes.
108
108
109
109
=== Create the configuration
110
110
111
-
112
111
:opentelemetry-config:
113
112
include::{includes}/opentelemetry-config.adoc[]
114
113
115
-
== Run the application
114
+
== See data
116
115
117
-
First we need to start a system to visualise the OpenTelemetry data.
118
-
We have 2 options:
116
+
Before starting the app, please set up the system to visualize the OpenTelemetry data.
117
+
We have several options:
119
118
120
-
* Start an all-in-one Grafana OTel LGTM system for traces and metrics.
121
-
* Jaeger system just for traces.
119
+
* Start an all-in-one Grafana OTel LGTM Dev Service for traces, logs and metrics
120
+
* Jaeger system just for traces
121
+
* Logging exporter
122
122
123
123
=== Grafana OTel LGTM option
124
+
A Dev Service that will receive your app's telemetry. Only the dependency is needed.
124
125
125
126
* Take a look at: xref:observability-devservices-lgtm.adoc[Getting Started with Grafana-OTel-LGTM].
126
127
127
-
This features a Quarkus Dev service including a Grafana for visualizing data, Loki to store logs, Tempo to store traces and Prometheus to store metrics. Also provides an OTel collector to receive the data.
128
+
This features a Quarkus Dev Service including a Grafana for visualizing data, Loki to store logs, Tempo to store traces and Prometheus to store metrics. Also provides an OTel collector to receive the data.
129
+
130
+
=== Jaeger v2 to see traces option
131
+
132
+
Jaeger V2 is a tool to visualize spans, and it's based on OpenTelemetry collector. There is no need to install a separate collector.
133
+
More details are available in https://medium.com/jaegertracing/towards-jaeger-v2-moar-opentelemetry-2f8239bee48e[this blog post].
134
+
135
+
Start the OpenTelemetry Collector and Jaeger system via the following Docker command:
Configure and start the https://opentelemetry.io/docs/collector/[OpenTelemetry Collector] to receive, process and export telemetry data to https://www.jaegertracing.io/[Jaeger] that will display the captured traces.
159
+
|===
160
+
161
+
Other ports are available in the https://www.jaegertracing.io/docs/2.17/architecture/apis/#write-apis[Jaeger documentation].
162
+
163
+
=== Logging exporter
164
+
You can output all traces to the console by setting the exporter to `logging` in the `application.properties` file:
165
+
166
+
[source,properties]
167
+
----
168
+
quarkus.otel.traces.exporter=logging
169
+
----
132
170
133
171
[NOTE]
134
172
====
135
-
Jaeger-all-in-one includes the Jaeger agent, an OTel collector, and the query service/UI.
136
-
You do not need to install a separated collector. You can directly send the trace data to Jaeger (after enabling OTLP receivers there, see e.g. this
137
-
https://medium.com/jaegertracing/introducing-native-support-for-opentelemetry-in-jaeger-eb661be8183c[blog entry] for details).
173
+
Usually there is no need to set the `quarkus.otel.traces.exporter` property. The default value is `cdi` and is managed by Quarkus.
138
174
====
139
175
140
-
Start the OpenTelemetry Collector and Jaeger system via the following `docker-compose.yml` file that you can launch via `docker-compose up -d`:
0 commit comments