This is an automated email from the ASF dual-hosted git repository. pcongiusti pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push: new 23648f43c26 doc(component): OpenTelemetry zero code SDK autoconfiguration 23648f43c26 is described below commit 23648f43c261e4c032fb677dd7781720366e240a Author: Pasquale Congiusti <pasquale.congiu...@gmail.com> AuthorDate: Fri Dec 13 11:27:19 2024 +0100 doc(component): OpenTelemetry zero code SDK autoconfiguration Closes CAMEL-21491 --- components/camel-opentelemetry/src/main/docs/opentelemetry.adoc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/components/camel-opentelemetry/src/main/docs/opentelemetry.adoc b/components/camel-opentelemetry/src/main/docs/opentelemetry.adoc index 45f0e134901..44e0d3f5b9d 100644 --- a/components/camel-opentelemetry/src/main/docs/opentelemetry.adoc +++ b/components/camel-opentelemetry/src/main/docs/opentelemetry.adoc @@ -68,7 +68,13 @@ camel.opentelemetry.enabled = true # camel.opentelemetry.instrumentationName = myApp ---- -NOTE: You would still need OpenTelemetry to instrument your code, which can be done via a <<OpenTelemetry-JavaAgent,Java agent>>. +The configuration alone provide a NOOP default implementation, which is only useful for testing purposes as it will always create the same trace and span. In order to leverage an easy configuration you can also use the https://opentelemetry.io/docs/languages/java/configuration/#zero-code-sdk-autoconfigure[OpenTelemetry zero code SDK autoconfiguration]. With this approach you will need to add the `io.opentelemetry:opentelemetry-sdk-extension-autoconfigure` to your Camel main application, [...] + +```bash +$ java -Dotel.java.global-autoconfigure.enabled=true -Dotel.metrics.exporter=none -Dotel.traces.exporter=none -Dotel.logs.exporter=none -jar my-app.jar +``` + +NOTE: you will need to check the SDK manual to configure according to your specific needs. == Spring Boot