refactor: rename project

main
sgoudham 2 years ago
parent 400dd25f49
commit 2cc8cdb506
Signed by: hammy
GPG Key ID: 44E818FD5457EEA4

@ -1,9 +1,9 @@
<a href="https://github.com/sgoudham/trace/stargazers"><img src="https://img.shields.io/github/stars/sgoudham/trace?colorA=363a4f&colorB=b7bdf8&style=for-the-badge"></a>
<a href="https://github.com/sgoudham/trace/issues"><img src="https://img.shields.io/github/issues/sgoudham/trace?colorA=363a4f&colorB=f5a97f&style=for-the-badge"></a>
<a href="https://github.com/sgoudham/trace/contributors"><img src="https://img.shields.io/github/contributors/sgoudham/trace?colorA=363a4f&colorB=a6da95&style=for-the-badge"></a>
<a href="https://search.maven.org/artifact/me.goudham/trace"><img src="https://img.shields.io/maven-central/v/me.goudham/trace?colorA=363a4f&colorB=a6da95&style=for-the-badge"></a>
<a href="https://github.com/sgoudham/micronaut-trace/stargazers"><img src="https://img.shields.io/github/stars/sgoudham/micronaut-trace?colorA=363a4f&colorB=b7bdf8&style=for-the-badge"></a>
<a href="https://github.com/sgoudham/micronaut-trace/issues"><img src="https://img.shields.io/github/issues/sgoudham/micronaut-trace?colorA=363a4f&colorB=f5a97f&style=for-the-badge"></a>
<a href="https://github.com/sgoudham/micronaut-trace/contributors"><img src="https://img.shields.io/github/contributors/sgoudham/micronaut-trace?colorA=363a4f&colorB=a6da95&style=for-the-badge"></a>
<a href="https://search.maven.org/artifact/me.goudham/micronaut-trace"><img src="https://img.shields.io/maven-central/v/me.goudham/micronaut-trace?colorA=363a4f&colorB=a6da95&style=for-the-badge"></a>
# 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
<!-- https://mvnrepository.com/artifact/me.goudham/trace -->
<!-- https://mvnrepository.com/artifact/me.goudham/micronaut-trace -->
<dependency>
<groupId>me.goudham</groupId>
<artifactId>trace</artifactId>
<artifactId>micronaut-trace</artifactId>
<version>VERSION</version>
</dependency>
```
@ -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

@ -3,7 +3,7 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>me.goudham</groupId>
<artifactId>trace</artifactId>
<artifactId>micronaut-trace</artifactId>
<version>1.0.0</version>
<packaging>${packaging}</packaging>
@ -127,8 +127,8 @@
<source>11</source>
<target>11</target>
<compilerArgs>
<arg>-Amicronaut.processing.group=me.goudham.trace</arg>
<arg>-Amicronaut.processing.module=trace</arg>
<arg>-Amicronaut.processing.group=me.goudham.micronaut.trace</arg>
<arg>-Amicronaut.processing.module=micronaut-trace</arg>
</compilerArgs>
</configuration>
</plugin>

@ -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;

@ -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;

@ -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
}

@ -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;

@ -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;

@ -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;

@ -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

@ -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

@ -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

@ -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
}

@ -1,3 +1,3 @@
micronaut:
application:
name: trace
name: micronaut-trace

@ -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;

@ -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;
Loading…
Cancel
Save