From 3091d08ec110f338b5f70f9bc4158091cfb748c1 Mon Sep 17 00:00:00 2001 From: Eric Martin Date: Tue, 23 Aug 2016 15:26:37 +0000 Subject: [PATCH 01/17] SF-5447: Allow @Trace Annotation to specify category, subcategory and action --- src/main/java/com/stackify/apm/Trace.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/main/java/com/stackify/apm/Trace.java b/src/main/java/com/stackify/apm/Trace.java index 3fe0b17..01af5e5 100644 --- a/src/main/java/com/stackify/apm/Trace.java +++ b/src/main/java/com/stackify/apm/Trace.java @@ -59,6 +59,18 @@ * ... * } * + * {@literal @}Trace(category = "MyService", subcategory = "MyMethod") + * public void anotherMethodToBeInstrumentedAsMyServiceMyMethod(String value) + * { + * ... + * } + * + * {@literal @}Trace(action = true) + * public void anotherMethodToBeInstrumentedAsRequestedAction(String value) + * { + * ... + * } + * * public void notInstrumented() * { * ... @@ -77,4 +89,10 @@ String trackedFunctionName() default ""; + String category() default "Java"; + + String subcategory() default "Other"; + + boolean action() default false; + } From 687a5fb9387ac36000adec1f6b3c83b77e6c4d20 Mon Sep 17 00:00:00 2001 From: Eric Martin Date: Tue, 23 Aug 2016 20:26:06 +0000 Subject: [PATCH 02/17] [maven-release-plugin] prepare release stackify-java-apm-annot-1.0.1 --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 18911ee..e3d9048 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ com.stackify stackify-java-apm-annot - 1.0.1-SNAPSHOT + 1.0.1 Stackify Java APM Annotations Stackify Java APM Annotations From b482ab49ac2f8c4520f690c97a6f62b87bb88c76 Mon Sep 17 00:00:00 2001 From: Eric Martin Date: Tue, 23 Aug 2016 20:26:10 +0000 Subject: [PATCH 03/17] [maven-release-plugin] prepare for next development iteration --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index e3d9048..96a4dad 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ com.stackify stackify-java-apm-annot - 1.0.1 + 1.0.2-SNAPSHOT Stackify Java APM Annotations Stackify Java APM Annotations From 72a56f0c05774a94f5060f191cfbb00c22fb56e9 Mon Sep 17 00:00:00 2001 From: Darin Howard Date: Fri, 11 Nov 2016 13:33:08 -0600 Subject: [PATCH 04/17] SF-6010 - adding in RUM instrumentation call and instructions. --- README.md | 25 ++++++++++++++++++++ src/main/java/com/stackify/apm/Stackify.java | 20 ++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 src/main/java/com/stackify/apm/Stackify.java diff --git a/README.md b/README.md index 6ae4868..d1745bc 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,31 @@ Add it as a maven dependency: ## Usage + +### RUM Manual Instrumentation + +Real User Monitoring (RUM) manual instrumentation allows you to specify where the RUM JavaScript block is injected. + +**Note**: Ensure that auto instrumentation is disabled by adding **rum.autoInstrument=false** to **stackify-api.properties** in your application's classpath. + +Your application code will need to call out to the Stackify **getRUMJavaScriptBlock()** method in the `` section as detailed below: + +#### JSP Example + +```` + + + <%= com.stackify.apm.Stackify.getRUMJavaScriptBlock() %> +