From fce03dcad26ef01b83e261055f241f75124caef6 Mon Sep 17 00:00:00 2001 From: Pranav Sharma Date: Wed, 11 Sep 2024 18:51:22 +0000 Subject: [PATCH] Rename spring example --- examples/{spring => spring-sleuth}/README.md | 4 ++-- examples/{spring => spring-sleuth}/build.gradle | 0 .../opentelemetry/example/springsleuth}/GreetingClient.java | 2 +- .../cloud/opentelemetry/example/springsleuth}/Main.java | 2 +- .../src/main/resources/application.properties | 0 settings.gradle | 6 +++--- 6 files changed, 7 insertions(+), 7 deletions(-) rename examples/{spring => spring-sleuth}/README.md (92%) rename examples/{spring => spring-sleuth}/build.gradle (100%) rename examples/{spring/src/main/java/com/google/cloud/opentelemetry/example/spring => spring-sleuth/src/main/java/com/google/cloud/opentelemetry/example/springsleuth}/GreetingClient.java (93%) rename examples/{spring/src/main/java/com/google/cloud/opentelemetry/example/spring => spring-sleuth/src/main/java/com/google/cloud/opentelemetry/example/springsleuth}/Main.java (96%) rename examples/{spring => spring-sleuth}/src/main/resources/application.properties (100%) diff --git a/examples/spring/README.md b/examples/spring-sleuth/README.md similarity index 92% rename from examples/spring/README.md rename to examples/spring-sleuth/README.md index a2ead167..e2532946 100644 --- a/examples/spring/README.md +++ b/examples/spring-sleuth/README.md @@ -27,7 +27,7 @@ You can run the example application via gradle. From the project root: ##### Build the executable JAR ```shell -cd examples/spring/ && gradle bootJar +cd examples/spring-sleuth/ && gradle bootJar ``` ##### Run the executable JAR @@ -35,7 +35,7 @@ cd examples/spring/ && gradle bootJar The JAR built from the previous command typically ends up in `build/libs` - ```shell -java -jar build/libs/examples-spring-0.1.0-SNAPSHOT.jar +java -jar build/libs/examples-spring-sleuth-0.1.0-SNAPSHOT.jar ``` The application is now running. To generate traces, head to `http://localhost:8080` in your browser. diff --git a/examples/spring/build.gradle b/examples/spring-sleuth/build.gradle similarity index 100% rename from examples/spring/build.gradle rename to examples/spring-sleuth/build.gradle diff --git a/examples/spring/src/main/java/com/google/cloud/opentelemetry/example/spring/GreetingClient.java b/examples/spring-sleuth/src/main/java/com/google/cloud/opentelemetry/example/springsleuth/GreetingClient.java similarity index 93% rename from examples/spring/src/main/java/com/google/cloud/opentelemetry/example/spring/GreetingClient.java rename to examples/spring-sleuth/src/main/java/com/google/cloud/opentelemetry/example/springsleuth/GreetingClient.java index aaaccd63..977c6ac1 100644 --- a/examples/spring/src/main/java/com/google/cloud/opentelemetry/example/spring/GreetingClient.java +++ b/examples/spring-sleuth/src/main/java/com/google/cloud/opentelemetry/example/springsleuth/GreetingClient.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.google.cloud.opentelemetry.example.spring; +package com.google.cloud.opentelemetry.example.springsleuth; import org.springframework.cloud.openfeign.FeignClient; import org.springframework.web.bind.annotation.GetMapping; diff --git a/examples/spring/src/main/java/com/google/cloud/opentelemetry/example/spring/Main.java b/examples/spring-sleuth/src/main/java/com/google/cloud/opentelemetry/example/springsleuth/Main.java similarity index 96% rename from examples/spring/src/main/java/com/google/cloud/opentelemetry/example/spring/Main.java rename to examples/spring-sleuth/src/main/java/com/google/cloud/opentelemetry/example/springsleuth/Main.java index c577f122..4d75aa93 100644 --- a/examples/spring/src/main/java/com/google/cloud/opentelemetry/example/spring/Main.java +++ b/examples/spring-sleuth/src/main/java/com/google/cloud/opentelemetry/example/springsleuth/Main.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.google.cloud.opentelemetry.example.spring; +package com.google.cloud.opentelemetry.example.springsleuth; import com.google.cloud.opentelemetry.trace.TraceExporter; import io.opentelemetry.sdk.trace.export.SpanExporter; diff --git a/examples/spring/src/main/resources/application.properties b/examples/spring-sleuth/src/main/resources/application.properties similarity index 100% rename from examples/spring/src/main/resources/application.properties rename to examples/spring-sleuth/src/main/resources/application.properties diff --git a/settings.gradle b/settings.gradle index 36ce4aee..e76ebaeb 100644 --- a/settings.gradle +++ b/settings.gradle @@ -37,7 +37,7 @@ include ":examples-resource" include ":detector-resources" include ":detector-resources-support" include ":e2e-test-server" -include ":examples-spring" +include ":examples-spring-sleuth" include ":propagators-gcp" include ":shared-resourcemapping" @@ -71,8 +71,8 @@ project(':examples-resource').projectDir = project(':e2e-test-server').projectDir = "$rootDir/e2e-test-server" as File -project(':examples-spring').projectDir = - "$rootDir/examples/spring" as File +project(':examples-spring-sleuth').projectDir = + "$rootDir/examples/spring-sleuth" as File project(':examples-autoinstrument').projectDir = "$rootDir/examples/autoinstrument" as File