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
Refer to https://micrometer.io/docs/tracing[Micrometer Tracing] for more information.
1358
1356
1359
-
==== Appendix
1357
+
===== Manual Configuration Without Spring Boot
1358
+
If you are not using Spring Boot then you will need to configure and provide an `ObservationRegistry` as well as Micrometer Tracing. Refer to https://micrometer.io/docs/tracing[Micrometer Tracing] for more information.
1359
+
1360
+
===== Auto-Configuration With Spring Boot
1361
+
If you are using Spring Boot, the Spring Boot Actuator auto-configures an instance of `ObservationRegistry` for you.
1362
+
If `micrometer-core` is on the classpath every stopped Observation leads to a timer.
1363
+
1364
+
Spring Boot also auto-configures Micrometer Tracing for you. This includes support for Brave OpenTelemetry, Zipkin and Wavefront. When using the Micrometer Observation API, finishing observations will lead to spans reported to Zipkin or Wavefront. Tracing can be controlled with properties under `management.tracing`. Zipkin can be configured with `management.zipkin.tracing` while Wavefront uses `management.wavefront`.
1365
+
1366
+
====== Example Configuration
1367
+
The following illustrates the steps to configure your Spring Boot app to use Zipkin with Brave.
1368
+
1369
+
**Step 1:** Add the required dependencies to your application [small]#(Maven or Gradle, respectively)#:
NOTE: The `'io.zipkin.reporter2:zipkin-sender-urlconnection'` dependency is only needed if your application does not have a configured WebClient or RestTemplate.
1405
+
1406
+
**Step 2:** Add the required properties to your application:
The `tracing.endpoint` above expects Zipkin is running locally as described https://zipkin.io/pages/quickstart.html[here].
1416
+
1417
+
At this point, your application should be recording traces when you send and receive Pulsar messages. You should be able to view them in the Zipkin UI [small]#(when running locally http://localhost:9411)#.
1418
+
1419
+
TIP: The above configuration can also be seen on the link:{github}/blob/main/spring-pulsar-sample-apps/README.adoc[Spring Pulsar Sample Apps].
1420
+
1421
+
The steps would be very similar to configure in any of the other supporting Tracing environments.
1422
+
1423
+
=== Appendix
1360
1424
The reference documentation has the following appendices:
0 commit comments