diff --git a/LICENSE.md b/LICENSE.md
new file mode 100644
index 0000000..78680ee
--- /dev/null
+++ b/LICENSE.md
@@ -0,0 +1,23 @@
+# Released under MIT License
+
+MIT License
+
+Copyright (c) 2019 Mario Kapusta
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
\ No newline at end of file
diff --git a/README.md b/README.md
index 54f762f..277698b 100644
--- a/README.md
+++ b/README.md
@@ -1,8 +1,9 @@
-# Spring boot starter for [gRPC framework](https://grpc.io/) with [Elastic APM tracer](https://elastic.org/)
+# Spring boot starter for [gRPC framework](https://grpc.io/) with [Elastic APM tracer](https://www.elastic.co/products/apm)
[![Release](https://jitpack.io/v/majusko/grpc-apm-spring-boot-starter.svg)](https://jitpack.io/#majusko/grpc-apm-spring-boot-starter)
[![Build Status](https://travis-ci.com/majusko/grpc-apm-spring-boot-starter.svg?branch=master)](https://travis-ci.com/majusko/grpc-apm-spring-boot-starter)
[![Test Coverage](https://codecov.io/gh/majusko/grpc-apm-spring-boot-starter/branch/master/graph/badge.svg)](https://codecov.io/gh/majusko/grpc-apm-spring-boot-starter/branch/master)
+[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
Extending great [LogNet gRPC Spring Boot Starter library](https://github.com/LogNet/grpc-spring-boot-starter) with APM tracer module. Easy implementation using a prepared interceptor beans ready for registration.
@@ -10,7 +11,8 @@ Extending great [LogNet gRPC Spring Boot Starter library](https://github.com/Log
Quick start consist only from 2 simple steps.
-(If you never used [gRPC library](https://github.com/LogNet/grpc-spring-boot-starter) before, have a look on this [basic setup](https://github.com/LogNet/grpc-spring-boot-starter#4-show-case) first.)
+- If you never used [LogNet gRPC library](https://github.com/LogNet/grpc-spring-boot-starter) before, have a look on this [basic setup](https://github.com/LogNet/grpc-spring-boot-starter#4-show-case) first.
+- If you never used [Elastic APM tracer](https://www.elastic.co/products/apm) before, have a look on this [basic setup](https://www.elastic.co/guide/en/apm/agent/java/1.x/setup.html) first.
#### 1. Add Maven dependency
diff --git a/pom.xml b/pom.xml
index 62aaf6a..09f92ac 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
4.0.0
io.github.majusko
grpc-apm-spring-boot-starter
- 1.0.0
+ 1.0.1
grpc-apm-spring-boot-starter
Elastic APM Tracer for your Grpc Spring Boot project
diff --git a/src/main/java/io/github/majusko/grpc/apm/GrpcApmAutoConfiguration.java b/src/main/java/io/github/majusko/grpc/apm/GrpcApmAutoConfiguration.java
index eeff026..e4728be 100644
--- a/src/main/java/io/github/majusko/grpc/apm/GrpcApmAutoConfiguration.java
+++ b/src/main/java/io/github/majusko/grpc/apm/GrpcApmAutoConfiguration.java
@@ -4,9 +4,11 @@
import io.github.majusko.grpc.apm.interceptor.ApmClientInterceptor;
import io.opentracing.Tracer;
import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
@Configuration
+@ComponentScan
public class GrpcApmAutoConfiguration {
@Bean
diff --git a/src/main/java/io/github/majusko/grpc/apm/GrpcApmSpringBootStarterApplication.java b/src/main/java/io/github/majusko/grpc/apm/GrpcApmSpringBootStarterApplication.java
index 76ad655..e983ada 100644
--- a/src/main/java/io/github/majusko/grpc/apm/GrpcApmSpringBootStarterApplication.java
+++ b/src/main/java/io/github/majusko/grpc/apm/GrpcApmSpringBootStarterApplication.java
@@ -5,9 +5,7 @@
@SpringBootApplication
public class GrpcApmSpringBootStarterApplication {
-
- public static void main(String[] args) {
- SpringApplication.run(GrpcApmSpringBootStarterApplication.class, args);
- }
-
+ public static void main(String[] args) {
+ SpringApplication.run(GrpcApmSpringBootStarterApplication.class, args);
+ }
}
diff --git a/src/main/resources/META-INF/spring.factories b/src/main/resources/META-INF/spring.factories
new file mode 100644
index 0000000..97fa679
--- /dev/null
+++ b/src/main/resources/META-INF/spring.factories
@@ -0,0 +1 @@
+org.springframework.boot.autoconfigure.EnableAutoConfiguration=io.github.majusko.grpc.apm.GrpcApmAutoConfiguration
\ No newline at end of file