diff --git a/.github/renovate.json b/.github/renovate.json index b5acba5..8919473 100644 --- a/.github/renovate.json +++ b/.github/renovate.json @@ -61,6 +61,14 @@ "matchStrings": [ "# renovate: datasource=(?[a-z-]+?)(?: depName=(?.+?))? packageName=(?.+?)(?: versioning=(?[a-z-]+?))?\\s(?:ENV|ARG) .+?_VERSION=(?.+?)\\s" ] + }, + { + "customType": "regex", + "description": "Update _version variables in run.sh", + "fileMatch": ["(^|/)run.sh$"], + "matchStrings": [ + "# renovate: datasource=(?[a-z-]+?)(?: depName=(?.+?))? packageName=(?.+?)(?: versioning=(?[a-z-]+?))?\\s.+?_version=(?.+?)\\s" + ] } ] } diff --git a/examples/java/run.sh b/examples/java/run.sh index 196c1ef..b0086f8 100755 --- a/examples/java/run.sh +++ b/examples/java/run.sh @@ -5,10 +5,12 @@ set -euox pipefail if [[ ! -f ./target/rolldice.jar ]]; then ./mvnw clean package fi -version=2.10.0 -jar=opentelemetry-javaagent-${version}.jar + +# renovate: datasource=github-releases depName=opentelemetry-java-instrumentation packageName=open-telemetry/opentelemetry-java-instrumentation +opentelemetry_javaagent_version=2.10.0 +jar=opentelemetry-javaagent-${opentelemetry_javaagent_version}.jar if [[ ! -f ./${jar} ]]; then - curl -vL https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/download/v${version}/opentelemetry-javaagent.jar -o ${jar} + curl -vL https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/download/v${opentelemetry_javaagent_version}/opentelemetry-javaagent.jar -o ${jar} fi export OTEL_RESOURCE_ATTRIBUTES="service.name=rolldice,service.instance.id=localhost:8080" # uncomment the next line to switch to Prometheus native histograms. diff --git a/examples/python/Dockerfile b/examples/python/Dockerfile index af01839..c08afaa 100644 --- a/examples/python/Dockerfile +++ b/examples/python/Dockerfile @@ -10,7 +10,9 @@ COPY requirements.txt . # 2. Run `pip freeze > requirements.txt` in the same directory as your app.py file RUN pip install --no-cache-dir -r requirements.txt -RUN pip install --no-cache-dir 'opentelemetry-distro[otlp]==0.46b0' +# renovate: datasource=github-releases depName=opentelemetry-python-contrib packageName=open-telemetry/opentelemetry-python-contrib +ENV OPENTELEMETRY_DISTRO_VERSION=0.46b0 +RUN pip install --no-cache-dir 'opentelemetry-distro[otlp]==$OPENTELEMETRY_DISTRO_VERSION' RUN opentelemetry-bootstrap -a install COPY app.py . diff --git a/examples/python/run.sh b/examples/python/run.sh index 088aace..2cdbab1 100755 --- a/examples/python/run.sh +++ b/examples/python/run.sh @@ -15,7 +15,9 @@ source ./venv/bin/activate pip install -r requirements.txt # Step 1: Install the OpenTelemetry SDK -pip install 'opentelemetry-distro[otlp]==0.46b0' +# renovate: datasource=github-releases depName=opentelemetry-python-contrib packageName=open-telemetry/opentelemetry-python-contrib +opentelemetry_distro_version=0.46b0 +pip install "opentelemetry-distro[otlp]==${opentelemetry_distro_version}" opentelemetry-bootstrap -a install # Step 2: Run the application