diff --git a/README.md b/README.md
index 9b3bc40..efc3b05 100644
--- a/README.md
+++ b/README.md
@@ -1,9 +1,9 @@
-
-
-
-
+
+
+
+
-# trace
+# micronaut-trace
> A Java annotation library to trace and time your method executions, written using [Micronaut](https://micronaut.io/).
@@ -14,11 +14,11 @@ Be sure to replace the **VERSION** key below with the version shown above!
### Maven
```xml
-
+
me.goudham
- trace
+ micronaut-trace
VERSION
```
@@ -31,15 +31,15 @@ repositories {
}
dependencies {
- // https://mvnrepository.com/artifact/me.goudham/trace
- implementation group: 'me.goudham', name: 'trace', version: 'VERSION'
+ // https://mvnrepository.com/artifact/me.goudham/micronaut-trace
+ implementation group: 'me.goudham', name: 'micronaut-trace', version: 'VERSION'
}
```
### Binaries
If you choose not to use a build tool, pre-built `.jar` files are available with every
-single [release](https://github.com/sgoudham/trace/releases).
+single [release](https://github.com/sgoudham/micronaut-trace/releases).
## Usage
diff --git a/pom.xml b/pom.xml
index a132ceb..09ca416 100644
--- a/pom.xml
+++ b/pom.xml
@@ -3,7 +3,7 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4.0.0
me.goudham
- trace
+ micronaut-trace
1.0.0
${packaging}
@@ -127,8 +127,8 @@
11
- -Amicronaut.processing.group=me.goudham.trace
- -Amicronaut.processing.module=trace
+ -Amicronaut.processing.group=me.goudham.micronaut.trace
+ -Amicronaut.processing.module=micronaut-trace
diff --git a/src/main/java/me/goudham/trace/annotation/Time.java b/src/main/java/me/goudham/micronaut/trace/annotation/Time.java
similarity index 85%
rename from src/main/java/me/goudham/trace/annotation/Time.java
rename to src/main/java/me/goudham/micronaut/trace/annotation/Time.java
index 87c795e..4ec73d9 100644
--- a/src/main/java/me/goudham/trace/annotation/Time.java
+++ b/src/main/java/me/goudham/micronaut/trace/annotation/Time.java
@@ -1,8 +1,8 @@
-package me.goudham.trace.annotation;
+package me.goudham.micronaut.trace.annotation;
import io.micronaut.aop.Around;
import jakarta.inject.Qualifier;
-import me.goudham.trace.shared.TimeInterpreter;
+import me.goudham.micronaut.trace.shared.TimeInterpreter;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
diff --git a/src/main/java/me/goudham/trace/annotation/Trace.java b/src/main/java/me/goudham/micronaut/trace/annotation/Trace.java
similarity index 86%
rename from src/main/java/me/goudham/trace/annotation/Trace.java
rename to src/main/java/me/goudham/micronaut/trace/annotation/Trace.java
index 38e4e4a..18801f8 100644
--- a/src/main/java/me/goudham/trace/annotation/Trace.java
+++ b/src/main/java/me/goudham/micronaut/trace/annotation/Trace.java
@@ -1,8 +1,8 @@
-package me.goudham.trace.annotation;
+package me.goudham.micronaut.trace.annotation;
import io.micronaut.aop.Around;
import jakarta.inject.Qualifier;
-import me.goudham.trace.shared.TraceInterpreter;
+import me.goudham.micronaut.trace.shared.TraceInterpreter;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
diff --git a/src/main/java/me/goudham/micronaut/trace/domain/LogType.java b/src/main/java/me/goudham/micronaut/trace/domain/LogType.java
new file mode 100644
index 0000000..75e540d
--- /dev/null
+++ b/src/main/java/me/goudham/micronaut/trace/domain/LogType.java
@@ -0,0 +1,19 @@
+package me.goudham.micronaut.trace.domain;
+
+import me.goudham.micronaut.trace.service.LoggingService;
+import me.goudham.micronaut.trace.shared.TimeInterpreter;
+import me.goudham.micronaut.trace.shared.TraceInterpreter;
+
+/**
+ * Represents each type that's used for logging
+ *
+ * @see LoggingService
+ * @see TraceInterpreter
+ * @see TimeInterpreter
+ */
+public enum LogType {
+ ENTERING,
+ EXITING,
+ ERROR,
+ EXECUTION_TIME
+}
\ No newline at end of file
diff --git a/src/main/java/me/goudham/trace/service/LoggingService.java b/src/main/java/me/goudham/micronaut/trace/service/LoggingService.java
similarity index 89%
rename from src/main/java/me/goudham/trace/service/LoggingService.java
rename to src/main/java/me/goudham/micronaut/trace/service/LoggingService.java
index 1981e60..80c973c 100644
--- a/src/main/java/me/goudham/trace/service/LoggingService.java
+++ b/src/main/java/me/goudham/micronaut/trace/service/LoggingService.java
@@ -1,7 +1,7 @@
-package me.goudham.trace.service;
+package me.goudham.micronaut.trace.service;
import jakarta.inject.Singleton;
-import me.goudham.trace.domain.LogType;
+import me.goudham.micronaut.trace.domain.LogType;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
diff --git a/src/main/java/me/goudham/trace/shared/Intercepter.java b/src/main/java/me/goudham/micronaut/trace/shared/Intercepter.java
similarity index 92%
rename from src/main/java/me/goudham/trace/shared/Intercepter.java
rename to src/main/java/me/goudham/micronaut/trace/shared/Intercepter.java
index 0a175e7..63cec28 100644
--- a/src/main/java/me/goudham/trace/shared/Intercepter.java
+++ b/src/main/java/me/goudham/micronaut/trace/shared/Intercepter.java
@@ -1,8 +1,8 @@
-package me.goudham.trace.shared;
+package me.goudham.micronaut.trace.shared;
import io.micronaut.aop.MethodInterceptor;
import io.micronaut.aop.MethodInvocationContext;
-import me.goudham.trace.service.LoggingService;
+import me.goudham.micronaut.trace.service.LoggingService;
import java.util.Arrays;
import java.util.stream.Collectors;
diff --git a/src/main/java/me/goudham/trace/shared/TimeIntercepter.java b/src/main/java/me/goudham/micronaut/trace/shared/TimeIntercepter.java
similarity index 85%
rename from src/main/java/me/goudham/trace/shared/TimeIntercepter.java
rename to src/main/java/me/goudham/micronaut/trace/shared/TimeIntercepter.java
index 836d99f..770715e 100644
--- a/src/main/java/me/goudham/trace/shared/TimeIntercepter.java
+++ b/src/main/java/me/goudham/micronaut/trace/shared/TimeIntercepter.java
@@ -1,11 +1,11 @@
-package me.goudham.trace.shared;
+package me.goudham.micronaut.trace.shared;
import io.micronaut.aop.MethodInvocationContext;
import jakarta.inject.Inject;
import jakarta.inject.Singleton;
-import me.goudham.trace.annotation.Time;
-import me.goudham.trace.domain.LogType;
-import me.goudham.trace.service.LoggingService;
+import me.goudham.micronaut.trace.annotation.Time;
+import me.goudham.micronaut.trace.domain.LogType;
+import me.goudham.micronaut.trace.service.LoggingService;
import java.util.concurrent.TimeUnit;
diff --git a/src/main/java/me/goudham/trace/shared/TimeInterpreter.java b/src/main/java/me/goudham/micronaut/trace/shared/TimeInterpreter.java
similarity index 89%
rename from src/main/java/me/goudham/trace/shared/TimeInterpreter.java
rename to src/main/java/me/goudham/micronaut/trace/shared/TimeInterpreter.java
index 7702d2e..fe18793 100644
--- a/src/main/java/me/goudham/trace/shared/TimeInterpreter.java
+++ b/src/main/java/me/goudham/micronaut/trace/shared/TimeInterpreter.java
@@ -1,4 +1,4 @@
-package me.goudham.trace.shared;
+package me.goudham.micronaut.trace.shared;
import io.micronaut.aop.InterceptorBean;
import io.micronaut.aop.MethodInterceptor;
@@ -6,7 +6,7 @@ import io.micronaut.aop.MethodInvocationContext;
import jakarta.inject.Inject;
import jakarta.inject.Named;
import jakarta.inject.Singleton;
-import me.goudham.trace.annotation.Time;
+import me.goudham.micronaut.trace.annotation.Time;
/**
* Intercepts the annotated method and logs out the
diff --git a/src/main/java/me/goudham/trace/shared/TraceIntercepter.java b/src/main/java/me/goudham/micronaut/trace/shared/TraceIntercepter.java
similarity index 85%
rename from src/main/java/me/goudham/trace/shared/TraceIntercepter.java
rename to src/main/java/me/goudham/micronaut/trace/shared/TraceIntercepter.java
index 599a0c0..98b3811 100644
--- a/src/main/java/me/goudham/trace/shared/TraceIntercepter.java
+++ b/src/main/java/me/goudham/micronaut/trace/shared/TraceIntercepter.java
@@ -1,11 +1,11 @@
-package me.goudham.trace.shared;
+package me.goudham.micronaut.trace.shared;
import io.micronaut.aop.MethodInvocationContext;
import jakarta.inject.Inject;
import jakarta.inject.Singleton;
-import me.goudham.trace.annotation.Trace;
-import me.goudham.trace.domain.LogType;
-import me.goudham.trace.service.LoggingService;
+import me.goudham.micronaut.trace.annotation.Trace;
+import me.goudham.micronaut.trace.service.LoggingService;
+import me.goudham.micronaut.trace.domain.LogType;
/**
* Intercepts the annotated method and logs out when it
diff --git a/src/main/java/me/goudham/trace/shared/TraceInterpreter.java b/src/main/java/me/goudham/micronaut/trace/shared/TraceInterpreter.java
similarity index 89%
rename from src/main/java/me/goudham/trace/shared/TraceInterpreter.java
rename to src/main/java/me/goudham/micronaut/trace/shared/TraceInterpreter.java
index ae922d9..3d85325 100644
--- a/src/main/java/me/goudham/trace/shared/TraceInterpreter.java
+++ b/src/main/java/me/goudham/micronaut/trace/shared/TraceInterpreter.java
@@ -1,4 +1,4 @@
-package me.goudham.trace.shared;
+package me.goudham.micronaut.trace.shared;
import io.micronaut.aop.InterceptorBean;
import io.micronaut.aop.MethodInterceptor;
@@ -6,7 +6,7 @@ import io.micronaut.aop.MethodInvocationContext;
import jakarta.inject.Inject;
import jakarta.inject.Named;
import jakarta.inject.Singleton;
-import me.goudham.trace.annotation.Trace;
+import me.goudham.micronaut.trace.annotation.Trace;
/**
* Intercepts the annotated method and logs out when it
diff --git a/src/main/java/me/goudham/trace/domain/LogType.java b/src/main/java/me/goudham/trace/domain/LogType.java
deleted file mode 100644
index d11f0c8..0000000
--- a/src/main/java/me/goudham/trace/domain/LogType.java
+++ /dev/null
@@ -1,19 +0,0 @@
-package me.goudham.trace.domain;
-
-import me.goudham.trace.shared.TimeInterpreter;
-import me.goudham.trace.shared.TraceInterpreter;
-import me.goudham.trace.service.LoggingService;
-
-/**
- * Represents each type that's used for logging
- *
- * @see LoggingService
- * @see TraceInterpreter
- * @see TimeInterpreter
- */
-public enum LogType {
- ENTERING,
- EXITING,
- ERROR,
- EXECUTION_TIME
-}
\ No newline at end of file
diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml
index 627a3ef..5978a14 100644
--- a/src/main/resources/application.yml
+++ b/src/main/resources/application.yml
@@ -1,3 +1,3 @@
micronaut:
application:
- name: trace
\ No newline at end of file
+ name: micronaut-trace
\ No newline at end of file
diff --git a/src/test/java/me/goudham/trace/shared/TimeIntercepterTest.java b/src/test/java/me/goudham/micronaut/trace/shared/TimeIntercepterTest.java
similarity index 94%
rename from src/test/java/me/goudham/trace/shared/TimeIntercepterTest.java
rename to src/test/java/me/goudham/micronaut/trace/shared/TimeIntercepterTest.java
index cc00455..ca203a4 100644
--- a/src/test/java/me/goudham/trace/shared/TimeIntercepterTest.java
+++ b/src/test/java/me/goudham/micronaut/trace/shared/TimeIntercepterTest.java
@@ -1,4 +1,4 @@
-package me.goudham.trace.shared;
+package me.goudham.micronaut.trace.shared;
import io.micronaut.aop.MethodInvocationContext;
import io.micronaut.core.type.Argument;
@@ -6,8 +6,8 @@ import io.micronaut.test.annotation.MockBean;
import io.micronaut.test.extensions.junit5.annotation.MicronautTest;
import jakarta.inject.Inject;
import jakarta.inject.Named;
-import me.goudham.trace.domain.LogType;
-import me.goudham.trace.service.LoggingService;
+import me.goudham.micronaut.trace.service.LoggingService;
+import me.goudham.micronaut.trace.domain.LogType;
import org.junit.jupiter.api.Test;
import static org.hamcrest.MatcherAssert.assertThat;
diff --git a/src/test/java/me/goudham/trace/shared/TraceIntercepterTest.java b/src/test/java/me/goudham/micronaut/trace/shared/TraceIntercepterTest.java
similarity index 95%
rename from src/test/java/me/goudham/trace/shared/TraceIntercepterTest.java
rename to src/test/java/me/goudham/micronaut/trace/shared/TraceIntercepterTest.java
index c2927e3..80db942 100644
--- a/src/test/java/me/goudham/trace/shared/TraceIntercepterTest.java
+++ b/src/test/java/me/goudham/micronaut/trace/shared/TraceIntercepterTest.java
@@ -1,4 +1,4 @@
-package me.goudham.trace.shared;
+package me.goudham.micronaut.trace.shared;
import io.micronaut.aop.MethodInvocationContext;
import io.micronaut.core.type.Argument;
@@ -6,8 +6,8 @@ import io.micronaut.test.annotation.MockBean;
import io.micronaut.test.extensions.junit5.annotation.MicronautTest;
import jakarta.inject.Inject;
import jakarta.inject.Named;
-import me.goudham.trace.domain.LogType;
-import me.goudham.trace.service.LoggingService;
+import me.goudham.micronaut.trace.service.LoggingService;
+import me.goudham.micronaut.trace.domain.LogType;
import org.junit.jupiter.api.Test;
import static org.hamcrest.MatcherAssert.assertThat;