Skip to content

Commit

Permalink
feat(trait) : Add telemetry capability
Browse files Browse the repository at this point in the history
* Uses camel-quarkus opentelemetry extension for new telemetry capability

resolves #apache/camel-k#3519
  • Loading branch information
gansheer committed Jan 10, 2023
1 parent 99f4131 commit 61f3dc1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 61f3dc1

Please sign in to comment.