From 37051d760faa7dd83e83bf3b3a7eac459afd496a Mon Sep 17 00:00:00 2001 From: Pranav Sharma Date: Fri, 4 Oct 2024 18:42:37 +0000 Subject: [PATCH 1/2] Update collector image version --- examples/otlpmetrics-function/collector-deployment/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/otlpmetrics-function/collector-deployment/Dockerfile b/examples/otlpmetrics-function/collector-deployment/Dockerfile index b85fff18..b8a9fc28 100644 --- a/examples/otlpmetrics-function/collector-deployment/Dockerfile +++ b/examples/otlpmetrics-function/collector-deployment/Dockerfile @@ -12,6 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -FROM otel/opentelemetry-collector-contrib:0.87.0 +FROM otel/opentelemetry-collector-contrib:0.111.0 COPY collector-config.yaml /etc/otelcol-contrib/config.yaml From 8c4d75ed62801d46ee4c6a9b20b2db08ca3f3b61 Mon Sep 17 00:00:00 2001 From: Pranav Sharma Date: Fri, 4 Oct 2024 18:43:05 +0000 Subject: [PATCH 2/2] Update clean task to delete the old output JAR --- examples/otlpmetrics-function/build.gradle | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/examples/otlpmetrics-function/build.gradle b/examples/otlpmetrics-function/build.gradle index b62ad3c8..d28f083b 100644 --- a/examples/otlpmetrics-function/build.gradle +++ b/examples/otlpmetrics-function/build.gradle @@ -62,6 +62,13 @@ tasks.named('shadowJar', ShadowJar) { destinationDirectory.set(file('out/deployment/')) } +clean { + doLast { + println "Deleting previous output..." + project.delete(files('out')) + } +} + // Task only used to test the function locally tasks.register('runFunction', JavaExec) { mainClass = 'com.google.cloud.functions.invoker.runner.Invoker'