You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ja...@apache.org on 2023/03/28 12:19:14 UTC
[camel-quarkus-examples] branch camel-quarkus-main updated (69077d3 -> d0e98c2)
This is an automated email from the ASF dual-hosted git repository.
jamesnetherton pushed a change to branch camel-quarkus-main
in repository https://gitbox.apache.org/repos/asf/camel-quarkus-examples.git
from 69077d3 Disable cluster-leader-election tests due to kubernetes-client incompatibility apache/camel-quarkus#4651
new f428cd6 Update observability example for changes in quarkus-opentelemetry
new d0e98c2 Set Quarkus Platform version to 3.0.0.Beta1
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
aws-lambda/pom.xml | 2 +-
cluster-leader-election/pom.xml | 2 +-
file-bindy-ftp/pom.xml | 2 +-
file-split-log-xml/pom.xml | 2 +-
health/pom.xml | 2 +-
http-log/pom.xml | 2 +-
jdbc-datasource/pom.xml | 2 +-
jms-jpa/pom.xml | 2 +-
jta-jpa/pom.xml | 2 +-
kafka/pom.xml | 2 +-
kamelet-chucknorris/pom.xml | 2 +-
observability/README.adoc | 6 ++--
observability/pom.xml | 6 +---
.../tracing/LoggingSpanExporterProducer.java | 34 ----------------------
.../src/main/resources/application.properties | 4 +--
platform-http-security-keycloak/pom.xml | 2 +-
rest-json/pom.xml | 2 +-
timer-log-kotlin/pom.xml | 2 +-
timer-log-main/pom.xml | 2 +-
timer-log/pom.xml | 2 +-
20 files changed, 21 insertions(+), 61 deletions(-)
delete mode 100644 observability/src/main/java/org/acme/observability/tracing/LoggingSpanExporterProducer.java
[camel-quarkus-examples] 01/02: Update observability example for changes in quarkus-opentelemetry
Posted by ja...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
jamesnetherton pushed a commit to branch camel-quarkus-main
in repository https://gitbox.apache.org/repos/asf/camel-quarkus-examples.git
commit f428cd63b186edf64f397509eea44d1a015395c9
Author: James Netherton <ja...@gmail.com>
AuthorDate: Tue Mar 28 07:51:49 2023 +0100
Update observability example for changes in quarkus-opentelemetry
---
observability/README.adoc | 6 ++--
observability/pom.xml | 4 ---
.../tracing/LoggingSpanExporterProducer.java | 34 ----------------------
.../src/main/resources/application.properties | 4 +--
4 files changed, 4 insertions(+), 44 deletions(-)
diff --git a/observability/README.adoc b/observability/README.adoc
index 2f2aee7..48bbb77 100644
--- a/observability/README.adoc
+++ b/observability/README.adoc
@@ -60,8 +60,8 @@ The default configuration uses the OTLP exporter, but it can be easily switched
[source,shell]
----
-- quarkus.opentelemetry.tracer.exporter.otlp.endpoint=http://localhost:4317
-+ quarkus.opentelemetry.tracer.exporter.jaeger.endpoint=http://localhost:14250
+- quarkus.otel.exporter.otlp.traces.endpoint=http://localhost:4317
++ quarkus.otel.exporter.jaeger.traces.endpoint=http://localhost:14250
----
and this change in `pom.xml`:
@@ -88,8 +88,6 @@ With the server running, browse to http://localhost:16686. Then choose 'camel-qu
The `platform-http` consumer route introduces a random delay to simulate latency, hence the overall time of each trace should be different. When viewing a trace, you should see
a hierarchy of 3 spans showing the progression of the message exchange through each endpoint.
-For convenience, tracing events are also logged to the application console.
-
=== Package and run the application
Once you are done with developing you may want to package and run the application.
diff --git a/observability/pom.xml b/observability/pom.xml
index d63b9ce..dded459 100644
--- a/observability/pom.xml
+++ b/observability/pom.xml
@@ -102,10 +102,6 @@
<groupId>io.micrometer</groupId>
<artifactId>micrometer-registry-prometheus</artifactId>
</dependency>
- <dependency>
- <groupId>io.opentelemetry</groupId>
- <artifactId>opentelemetry-exporter-logging</artifactId>
- </dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-resteasy</artifactId>
diff --git a/observability/src/main/java/org/acme/observability/tracing/LoggingSpanExporterProducer.java b/observability/src/main/java/org/acme/observability/tracing/LoggingSpanExporterProducer.java
deleted file mode 100644
index ada51c2..0000000
--- a/observability/src/main/java/org/acme/observability/tracing/LoggingSpanExporterProducer.java
+++ /dev/null
@@ -1,34 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.acme.observability.tracing;
-
-import io.opentelemetry.exporter.logging.LoggingSpanExporter;
-import io.opentelemetry.sdk.trace.export.SpanExporter;
-import jakarta.enterprise.inject.Produces;
-
-/**
- * Quarkus OpenTelemetry automatically discovers and configures SpanExporter beans at build time.
- *
- * The LoggingSpanExporter outputs span details to the application console.
- */
-public class LoggingSpanExporterProducer {
-
- @Produces
- public SpanExporter loggingSpanExporter() {
- return new LoggingSpanExporter();
- }
-}
diff --git a/observability/src/main/resources/application.properties b/observability/src/main/resources/application.properties
index 66fde5c..a0956de 100644
--- a/observability/src/main/resources/application.properties
+++ b/observability/src/main/resources/application.properties
@@ -24,9 +24,9 @@ quarkus.banner.enabled = false
quarkus.application.name=camel-quarkus-observability
# For OTLP
-quarkus.opentelemetry.tracer.exporter.otlp.endpoint=http://${TELEMETRY_COLLECTOR_COLLECTOR_SERVICE_HOST:localhost}:4317
+quarkus.otel.exporter.otlp.traces.endpoint=http://${TELEMETRY_COLLECTOR_COLLECTOR_SERVICE_HOST:localhost}:4317
# For Jaeger
-# quarkus.opentelemetry.tracer.exporter.jaeger.endpoint=http://${MY_JAEGER_COLLECTOR_SERVICE_HOST:localhost}:14250
+# quarkus.otel.exporter.jaeger.traces.endpoint=http://${MY_JAEGER_COLLECTOR_SERVICE_HOST:localhost}:14250
# Allow metrics to be exported as JSON. Not strictly required and is disabled by default
quarkus.micrometer.export.json.enabled = true
[camel-quarkus-examples] 02/02: Set Quarkus Platform version to 3.0.0.Beta1
Posted by ja...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
jamesnetherton pushed a commit to branch camel-quarkus-main
in repository https://gitbox.apache.org/repos/asf/camel-quarkus-examples.git
commit d0e98c27af58eab21145e8e98993c5efd69a21b3
Author: James Netherton <ja...@gmail.com>
AuthorDate: Tue Mar 28 07:54:49 2023 +0100
Set Quarkus Platform version to 3.0.0.Beta1
---
aws-lambda/pom.xml | 2 +-
cluster-leader-election/pom.xml | 2 +-
file-bindy-ftp/pom.xml | 2 +-
file-split-log-xml/pom.xml | 2 +-
health/pom.xml | 2 +-
http-log/pom.xml | 2 +-
jdbc-datasource/pom.xml | 2 +-
jms-jpa/pom.xml | 2 +-
jta-jpa/pom.xml | 2 +-
kafka/pom.xml | 2 +-
kamelet-chucknorris/pom.xml | 2 +-
observability/pom.xml | 2 +-
platform-http-security-keycloak/pom.xml | 2 +-
rest-json/pom.xml | 2 +-
timer-log-kotlin/pom.xml | 2 +-
timer-log-main/pom.xml | 2 +-
timer-log/pom.xml | 2 +-
17 files changed, 17 insertions(+), 17 deletions(-)
diff --git a/aws-lambda/pom.xml b/aws-lambda/pom.xml
index d1e7d7d..6ffe4ec 100644
--- a/aws-lambda/pom.xml
+++ b/aws-lambda/pom.xml
@@ -27,7 +27,7 @@
<description>Camel Quarkus Example :: Deploying a Camel Route in AWS Lambda</description>
<properties>
- <quarkus.platform.version>3.0.0.Alpha5</quarkus.platform.version>
+ <quarkus.platform.version>3.0.0.Beta1</quarkus.platform.version>
<camel-quarkus.platform.version>3.0.0-SNAPSHOT</camel-quarkus.platform.version>
<quarkus.platform.group-id>io.quarkus</quarkus.platform.group-id>
diff --git a/cluster-leader-election/pom.xml b/cluster-leader-election/pom.xml
index 25068bc..a2d476d 100644
--- a/cluster-leader-election/pom.xml
+++ b/cluster-leader-election/pom.xml
@@ -29,7 +29,7 @@
<description>Camel Quarkus Example :: Cluster leader election</description>
<properties>
- <quarkus.platform.version>3.0.0.Alpha5</quarkus.platform.version>
+ <quarkus.platform.version>3.0.0.Beta1</quarkus.platform.version>
<camel-quarkus.platform.version>3.0.0-SNAPSHOT</camel-quarkus.platform.version>
<quarkus.platform.group-id>io.quarkus</quarkus.platform.group-id>
diff --git a/file-bindy-ftp/pom.xml b/file-bindy-ftp/pom.xml
index 80c2433..4d34eab 100644
--- a/file-bindy-ftp/pom.xml
+++ b/file-bindy-ftp/pom.xml
@@ -28,7 +28,7 @@
<description>Camel Quarkus Example :: File Bindy FTP</description>
<properties>
- <quarkus.platform.version>3.0.0.Alpha5</quarkus.platform.version>
+ <quarkus.platform.version>3.0.0.Beta1</quarkus.platform.version>
<camel-quarkus.platform.version>3.0.0-SNAPSHOT</camel-quarkus.platform.version>
<quarkus.platform.group-id>io.quarkus</quarkus.platform.group-id>
diff --git a/file-split-log-xml/pom.xml b/file-split-log-xml/pom.xml
index 1ac2c6f..cfa0cf9 100644
--- a/file-split-log-xml/pom.xml
+++ b/file-split-log-xml/pom.xml
@@ -28,7 +28,7 @@
<description>Camel Quarkus Example :: File To Log XML DSL</description>
<properties>
- <quarkus.platform.version>3.0.0.Alpha5</quarkus.platform.version>
+ <quarkus.platform.version>3.0.0.Beta1</quarkus.platform.version>
<camel-quarkus.platform.version>3.0.0-SNAPSHOT</camel-quarkus.platform.version>
<quarkus.platform.group-id>io.quarkus</quarkus.platform.group-id>
diff --git a/health/pom.xml b/health/pom.xml
index 150948c..6d2a449 100644
--- a/health/pom.xml
+++ b/health/pom.xml
@@ -28,7 +28,7 @@
<description>Camel Quarkus Example :: Health Check</description>
<properties>
- <quarkus.platform.version>3.0.0.Alpha5</quarkus.platform.version>
+ <quarkus.platform.version>3.0.0.Beta1</quarkus.platform.version>
<camel-quarkus.platform.version>3.0.0-SNAPSHOT</camel-quarkus.platform.version>
<quarkus.platform.group-id>io.quarkus</quarkus.platform.group-id>
diff --git a/http-log/pom.xml b/http-log/pom.xml
index 709405b..f30efcc 100644
--- a/http-log/pom.xml
+++ b/http-log/pom.xml
@@ -28,7 +28,7 @@
<description>Camel Quarkus Example :: HTTP to Log</description>
<properties>
- <quarkus.platform.version>3.0.0.Alpha5</quarkus.platform.version>
+ <quarkus.platform.version>3.0.0.Beta1</quarkus.platform.version>
<camel-quarkus.platform.version>3.0.0-SNAPSHOT</camel-quarkus.platform.version>
<quarkus.platform.group-id>io.quarkus</quarkus.platform.group-id>
diff --git a/jdbc-datasource/pom.xml b/jdbc-datasource/pom.xml
index 9cad863..5a76824 100644
--- a/jdbc-datasource/pom.xml
+++ b/jdbc-datasource/pom.xml
@@ -25,7 +25,7 @@
<name>Camel Quarkus :: Examples :: Jdbc - DatataSource - Log</name>
<description>Camel Quarkus Example :: Connect to Database using Datasource</description>
<properties>
- <quarkus.platform.version>3.0.0.Alpha5</quarkus.platform.version>
+ <quarkus.platform.version>3.0.0.Beta1</quarkus.platform.version>
<camel-quarkus.platform.version>3.0.0-SNAPSHOT</camel-quarkus.platform.version>
<quarkus.platform.group-id>io.quarkus</quarkus.platform.group-id>
diff --git a/jms-jpa/pom.xml b/jms-jpa/pom.xml
index d703951..153ced1 100644
--- a/jms-jpa/pom.xml
+++ b/jms-jpa/pom.xml
@@ -25,7 +25,7 @@
<name>Camel Quarkus :: Examples :: JMS JPA</name>
<description>Camel Quarkus Example :: JMS JPA</description>
<properties>
- <quarkus.platform.version>3.0.0.Alpha5</quarkus.platform.version>
+ <quarkus.platform.version>3.0.0.Beta1</quarkus.platform.version>
<camel-quarkus.platform.version>3.0.0-SNAPSHOT</camel-quarkus.platform.version>
<quarkiverse-artemis.version>3.0.0.Alpha7</quarkiverse-artemis.version>
diff --git a/jta-jpa/pom.xml b/jta-jpa/pom.xml
index 5c35270..5f7de91 100644
--- a/jta-jpa/pom.xml
+++ b/jta-jpa/pom.xml
@@ -25,7 +25,7 @@
<name>Camel Quarkus :: Examples :: JTA JPA</name>
<description>Camel Quarkus Example :: JTA JPA</description>
<properties>
- <quarkus.platform.version>3.0.0.Alpha5</quarkus.platform.version>
+ <quarkus.platform.version>3.0.0.Beta1</quarkus.platform.version>
<camel-quarkus.platform.version>3.0.0-SNAPSHOT</camel-quarkus.platform.version>
<quarkus.platform.group-id>io.quarkus</quarkus.platform.group-id>
diff --git a/kafka/pom.xml b/kafka/pom.xml
index c5e7b68..645168e 100644
--- a/kafka/pom.xml
+++ b/kafka/pom.xml
@@ -28,7 +28,7 @@
<description>Camel Quarkus Example :: Kafka</description>
<properties>
- <quarkus.platform.version>3.0.0.Alpha5</quarkus.platform.version>
+ <quarkus.platform.version>3.0.0.Beta1</quarkus.platform.version>
<camel-quarkus.platform.version>3.0.0-SNAPSHOT</camel-quarkus.platform.version>
<quarkus.platform.group-id>io.quarkus</quarkus.platform.group-id>
diff --git a/kamelet-chucknorris/pom.xml b/kamelet-chucknorris/pom.xml
index cc278e1..d9d776e 100644
--- a/kamelet-chucknorris/pom.xml
+++ b/kamelet-chucknorris/pom.xml
@@ -28,7 +28,7 @@
<description>Camel Quarkus Example :: Kamelet Chuck Norris</description>
<properties>
- <quarkus.platform.version>3.0.0.Alpha5</quarkus.platform.version>
+ <quarkus.platform.version>3.0.0.Beta1</quarkus.platform.version>
<camel-quarkus.platform.version>3.0.0-SNAPSHOT</camel-quarkus.platform.version>
<!-- TODO: https://github.com/apache/camel-quarkus/issues/3156 -->
diff --git a/observability/pom.xml b/observability/pom.xml
index dded459..46738f4 100644
--- a/observability/pom.xml
+++ b/observability/pom.xml
@@ -29,7 +29,7 @@
<properties>
- <quarkus.platform.version>3.0.0.Alpha5</quarkus.platform.version>
+ <quarkus.platform.version>3.0.0.Beta1</quarkus.platform.version>
<camel-quarkus.platform.version>3.0.0-SNAPSHOT</camel-quarkus.platform.version>
<quarkus.platform.group-id>io.quarkus</quarkus.platform.group-id>
diff --git a/platform-http-security-keycloak/pom.xml b/platform-http-security-keycloak/pom.xml
index b3abb62..6f230bf 100644
--- a/platform-http-security-keycloak/pom.xml
+++ b/platform-http-security-keycloak/pom.xml
@@ -28,7 +28,7 @@
<description>Camel Quarkus Example :: Platform HTTP Security Keycloak</description>
<properties>
- <quarkus.platform.version>3.0.0.Alpha5</quarkus.platform.version>
+ <quarkus.platform.version>3.0.0.Beta1</quarkus.platform.version>
<camel-quarkus.platform.version>3.0.0-SNAPSHOT</camel-quarkus.platform.version>
<quarkus.platform.group-id>io.quarkus</quarkus.platform.group-id>
diff --git a/rest-json/pom.xml b/rest-json/pom.xml
index 2f16fd1..1b9dfcf 100644
--- a/rest-json/pom.xml
+++ b/rest-json/pom.xml
@@ -28,7 +28,7 @@
<description>Camel Quarkus Example :: Rest Json</description>
<properties>
- <quarkus.platform.version>3.0.0.Alpha5</quarkus.platform.version>
+ <quarkus.platform.version>3.0.0.Beta1</quarkus.platform.version>
<camel-quarkus.platform.version>3.0.0-SNAPSHOT</camel-quarkus.platform.version>
<quarkus.platform.group-id>io.quarkus</quarkus.platform.group-id>
diff --git a/timer-log-kotlin/pom.xml b/timer-log-kotlin/pom.xml
index ee13d22..f2273cf 100644
--- a/timer-log-kotlin/pom.xml
+++ b/timer-log-kotlin/pom.xml
@@ -28,7 +28,7 @@
<description>Camel Quarkus Example :: Timer to Log Kotlin</description>
<properties>
- <quarkus.platform.version>3.0.0.Alpha5</quarkus.platform.version>
+ <quarkus.platform.version>3.0.0.Beta1</quarkus.platform.version>
<camel-quarkus.platform.version>3.0.0-SNAPSHOT</camel-quarkus.platform.version>
<quarkus.platform.group-id>io.quarkus</quarkus.platform.group-id>
diff --git a/timer-log-main/pom.xml b/timer-log-main/pom.xml
index 44e6830..039c279 100644
--- a/timer-log-main/pom.xml
+++ b/timer-log-main/pom.xml
@@ -28,7 +28,7 @@
<description>Camel Quarkus Example :: Timer to Log Main</description>
<properties>
- <quarkus.platform.version>3.0.0.Alpha5</quarkus.platform.version>
+ <quarkus.platform.version>3.0.0.Beta1</quarkus.platform.version>
<camel-quarkus.platform.version>3.0.0-SNAPSHOT</camel-quarkus.platform.version>
<!-- TODO: https://github.com/apache/camel-quarkus/issues/3156 -->
diff --git a/timer-log/pom.xml b/timer-log/pom.xml
index 9b54b24..099b710 100644
--- a/timer-log/pom.xml
+++ b/timer-log/pom.xml
@@ -28,7 +28,7 @@
<description>Camel Quarkus Example :: Timer to Log</description>
<properties>
- <quarkus.platform.version>3.0.0.Alpha5</quarkus.platform.version>
+ <quarkus.platform.version>3.0.0.Beta1</quarkus.platform.version>
<camel-quarkus.platform.version>3.0.0-SNAPSHOT</camel-quarkus.platform.version>
<quarkus.platform.group-id>io.quarkus</quarkus.platform.group-id>