From cadf0b4db8ba11170d622e8601d891626ee49149 Mon Sep 17 00:00:00 2001 From: user1 Date: Sat, 7 Nov 2020 14:26:25 +1100 Subject: [PATCH] Updated to use shared library from the domain project. --- README.md | 42 +++++++++++++++++++++++++++++ examples/domain/proj1/pom.xml | 10 ------- examples/domain/proj2/pom.xml | 5 ---- examples/domain/test-domain/pom.xml | 16 +++++++++++ 4 files changed, 58 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index dc2985d..521a163 100644 --- a/README.md +++ b/README.md @@ -58,3 +58,45 @@ The `dep-test` folder in this repo contains a sample test project configured to #### Metrics Elastic Java APM agent also captures JVM metrics, so all the Mule JVM metrics collected by the agent are there as well: ![metrics](images/metrics.png) + +## Support for Mule domains +The mule4-agent APM dependency should be added to the domain `pom.xml` file and also be declared as `sharedLibrary` there for it to be visible to the domain projects deployed with the domain configuration. +pom.xml: +```xml + + + + org.mule.tools.maven + mule-maven-plugin + ${mule.maven.plugin.version} + true + + + + + + co.elastic.apm + mule4-agent + + + + + + + + + +... + + co.elastic.apm + mule4-agent + 0.3.0 + +... + +``` + +Then, every project that needs to be traced, should include the following in the flow definition once per project: +```xml + +``` diff --git a/examples/domain/proj1/pom.xml b/examples/domain/proj1/pom.xml index 29e7f1b..2904771 100644 --- a/examples/domain/proj1/pom.xml +++ b/examples/domain/proj1/pom.xml @@ -38,16 +38,6 @@ - - co.elastic.apm - mule4-agent - 0.2.0 - - - co.elastic.apm - mule4-agent - 0.2.0 - org.mule.connectors mule-http-connector diff --git a/examples/domain/proj2/pom.xml b/examples/domain/proj2/pom.xml index 51859a6..efe4a4d 100644 --- a/examples/domain/proj2/pom.xml +++ b/examples/domain/proj2/pom.xml @@ -57,11 +57,6 @@ mule-domain provided - - co.elastic.apm - mule4-agent - 0.2.0 - diff --git a/examples/domain/test-domain/pom.xml b/examples/domain/test-domain/pom.xml index 87a467a..28fe7e8 100644 --- a/examples/domain/test-domain/pom.xml +++ b/examples/domain/test-domain/pom.xml @@ -26,6 +26,17 @@ mule-maven-plugin ${mule.maven.plugin.version} true + + + + + + co.elastic.apm + mule4-agent + + + + @@ -43,6 +54,11 @@ 1.2.0 mule-plugin + + co.elastic.apm + mule4-agent + 0.3.0 +