diff --git a/support/camel-k-maven-plugin/src/it/generate-catalog/verify.groovy b/support/camel-k-maven-plugin/src/it/generate-catalog/verify.groovy index 73ae1385d..849cf55d3 100644 --- a/support/camel-k-maven-plugin/src/it/generate-catalog/verify.groovy +++ b/support/camel-k-maven-plugin/src/it/generate-catalog/verify.groovy @@ -42,6 +42,8 @@ new File(basedir, "catalog.yaml").withReader { assert catalog.spec.runtime.capabilities['circuit-breaker'].dependencies[0].artifactId == 'camel-quarkus-microprofile-fault-tolerance' assert catalog.spec.runtime.capabilities['tracing'].dependencies[0].groupId == 'org.apache.camel.quarkus' assert catalog.spec.runtime.capabilities['tracing'].dependencies[0].artifactId == 'camel-quarkus-opentracing' + assert catalog.spec.runtime.capabilities['telemetry'].dependencies[0].groupId == 'org.apache.camel.quarkus' + assert catalog.spec.runtime.capabilities['telemetry'].dependencies[0].artifactId == 'camel-quarkus-opentelemetry' assert catalog.spec.runtime.capabilities['master'].dependencies[0].groupId == 'org.apache.camel.k' assert catalog.spec.runtime.capabilities['master'].dependencies[0].artifactId == 'camel-k-master' diff --git a/support/camel-k-maven-plugin/src/main/java/org/apache/camel/k/tooling/maven/GenerateCatalogMojo.java b/support/camel-k-maven-plugin/src/main/java/org/apache/camel/k/tooling/maven/GenerateCatalogMojo.java index 6fbd6f3ca..1d598aec7 100644 --- a/support/camel-k-maven-plugin/src/main/java/org/apache/camel/k/tooling/maven/GenerateCatalogMojo.java +++ b/support/camel-k-maven-plugin/src/main/java/org/apache/camel/k/tooling/maven/GenerateCatalogMojo.java @@ -229,6 +229,12 @@ public void execute() throws MojoExecutionException, MojoFailureException { CamelCapability.forArtifact( "org.apache.camel.quarkus", "camel-quarkus-opentracing")); } + if (capabilitiesExclusionList != null && !capabilitiesExclusionList.contains("telemetry")) { + runtimeSpec.putCapability( + "telemetry", + CamelCapability.forArtifact( + "org.apache.camel.quarkus", "camel-quarkus-opentelemetry")); + } if (capabilitiesExclusionList != null && !capabilitiesExclusionList.contains("master")) { runtimeSpec.putCapability( "master",