From c51531c5c591efc1bb22b0d0aaac37e184b253e6 Mon Sep 17 00:00:00 2001 From: Aleksandar Petrov <8142643+aleks-p@users.noreply.github.com> Date: Mon, 2 Dec 2024 10:03:59 -0400 Subject: [PATCH] Update examples and docs with the latest java sdk (#3727) --- docs/sources/configure-client/language-sdks/java.md | 4 ++-- examples/language-sdk-instrumentation/java/fib/Dockerfile | 2 +- .../language-sdk-instrumentation/java/rideshare/Dockerfile | 2 +- .../java/rideshare/build.gradle.kts | 2 +- examples/language-sdk-instrumentation/java/simple/Dockerfile | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/sources/configure-client/language-sdks/java.md b/docs/sources/configure-client/language-sdks/java.md index 41b6cf661c..15b68325ea 100644 --- a/docs/sources/configure-client/language-sdks/java.md +++ b/docs/sources/configure-client/language-sdks/java.md @@ -51,12 +51,12 @@ First, add the Pyroscope dependency: io.pyroscope agent - 0.14.0 + 0.15.0 ``` ```gradle -implementation("io.pyroscope:agent:0.14.0") +implementation("io.pyroscope:agent:0.15.0") ``` {{< /code >}} diff --git a/examples/language-sdk-instrumentation/java/fib/Dockerfile b/examples/language-sdk-instrumentation/java/fib/Dockerfile index c9db4cb127..4838a39e8b 100644 --- a/examples/language-sdk-instrumentation/java/fib/Dockerfile +++ b/examples/language-sdk-instrumentation/java/fib/Dockerfile @@ -4,7 +4,7 @@ WORKDIR /opt/app RUN apt-get update && apt-get install ca-certificates -y && update-ca-certificates && apt-get install -y git -ADD https://github.com/grafana/pyroscope-java/releases/download/v0.14.0/pyroscope.jar /opt/app/pyroscope.jar +ADD https://github.com/grafana/pyroscope-java/releases/download/v0.15.0/pyroscope.jar /opt/app/pyroscope.jar COPY Main.java ./ diff --git a/examples/language-sdk-instrumentation/java/rideshare/Dockerfile b/examples/language-sdk-instrumentation/java/rideshare/Dockerfile index 8088e822ca..9c02fa7787 100644 --- a/examples/language-sdk-instrumentation/java/rideshare/Dockerfile +++ b/examples/language-sdk-instrumentation/java/rideshare/Dockerfile @@ -37,6 +37,6 @@ COPY --from=builder /opt/app/build/libs/rideshare-1.0-SNAPSHOT.jar /opt/app/buil WORKDIR /opt/app -ADD https://github.com/grafana/pyroscope-java/releases/download/v0.14.0/pyroscope.jar /opt/app/pyroscope.jar +ADD https://github.com/grafana/pyroscope-java/releases/download/v0.15.0/pyroscope.jar /opt/app/pyroscope.jar CMD sh -c "exec java -Dserver.port=${RIDESHARE_LISTEN_PORT} -javaagent:pyroscope.jar -jar ./build/libs/rideshare-1.0-SNAPSHOT.jar" diff --git a/examples/language-sdk-instrumentation/java/rideshare/build.gradle.kts b/examples/language-sdk-instrumentation/java/rideshare/build.gradle.kts index 89717bef37..b45a0ae899 100644 --- a/examples/language-sdk-instrumentation/java/rideshare/build.gradle.kts +++ b/examples/language-sdk-instrumentation/java/rideshare/build.gradle.kts @@ -12,7 +12,7 @@ repositories { } dependencies { - implementation("io.pyroscope:agent:0.14.0") + implementation("io.pyroscope:agent:0.15.0") implementation("org.springframework.boot:spring-boot-starter-web") testImplementation("org.junit.jupiter:junit-jupiter-api:5.8.2") testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.8.2") diff --git a/examples/language-sdk-instrumentation/java/simple/Dockerfile b/examples/language-sdk-instrumentation/java/simple/Dockerfile index f764a0ab42..6cde96a62c 100644 --- a/examples/language-sdk-instrumentation/java/simple/Dockerfile +++ b/examples/language-sdk-instrumentation/java/simple/Dockerfile @@ -2,7 +2,7 @@ FROM openjdk:11.0.11-jdk WORKDIR /opt/app -ADD https://github.com/grafana/pyroscope-java/releases/download/v0.14.0/pyroscope.jar /opt/app/pyroscope.jar +ADD https://github.com/grafana/pyroscope-java/releases/download/v0.15.0/pyroscope.jar /opt/app/pyroscope.jar COPY Main.java ./Main.java RUN javac Main.java