JinyuChen97 commented on code in PR #8879: URL: https://github.com/apache/camel-quarkus/pull/8879#discussion_r3586690221
########## extensions/micrometer-observability/runtime/src/main/doc/usage.adoc: ########## @@ -0,0 +1,59 @@ +The extension automatically creates a `MicrometerObservabilityTracer` and binds it to the Camel registry. +It bridges Camel's telemetry SPI to Micrometer Tracing, which in turn delegates to any +https://micrometer.io/docs/tracing[Micrometer Tracing] backend (Brave, OpenTelemetry, …). + +=== Prerequisites + +Provide a Micrometer `Tracer`, `ObservationRegistry` and `Propagator` as CDI beans; the +extension picks them up automatically. +Without them the extension falls back to NOOP implementations (a warning is logged) — useful for +local development but no traces are exported. + +For OpenTelemetry, add the Micrometer–OTel bridge: + +[source,xml] +---- +<dependency> + <groupId>io.micrometer</groupId> + <artifactId>micrometer-tracing-bridge-otel</artifactId> +</dependency> +---- + +Then set an exporter endpoint (see the https://quarkus.io/guides/opentelemetry[Quarkus OpenTelemetry guide]): + +[source,properties] +---- +quarkus.otel.exporter.otlp.traces.endpoint=http://localhost:4317 +---- + +For Brave/Zipkin, add `micrometer-tracing-bridge-brave` instead and configure the reporter of your choice. + +=== Filtering endpoints Review Comment: I have reword the usage.adoc, please check. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
