Skip to content

Commit

Permalink
add telemetry to citestwheel and fix interpolation
Browse files Browse the repository at this point in the history
  • Loading branch information
msarahan committed Oct 10, 2024
1 parent 20a4c05 commit 5850eed
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ci-conda.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,8 @@ rm -rf gh_*

# Install OpenTelemetry instrumentation
pip install opentelemetry-distro[otlp] opentelemetry-exporter-prometheus
curl -L -o otel-cli-${ CPU_ARCH }.tar.gz https://github.com/equinix-labs/otel-cli/releases/download/v0.4.5/otel-cli_0.4.5_linux_${ CPU_ARCH }.tar.gz
tar -zxf otel-cli-${ CPU_ARCH }.tar.gz
curl -L -o "otel-cli-${CPU_ARCH}.tar.gz" https://github.com/equinix-labs/otel-cli/releases/download/v0.4.5/otel-cli_0.4.5_linux_${CPU_ARCH}.tar.gz
tar -zxf "otel-cli-${CPU_ARCH}.tar.gz"
mv otel-cli /usr/local/bin/
git clone -b add-conda-build-instrumentation https://github.com/msarahan/opentelemetry-python-contrib
pip install -e ./opentelemetry-python-contrib/instrumentation/opentelemetry-instrumentation-conda-build
Expand Down
4 changes: 2 additions & 2 deletions ci-wheel.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,8 @@ COPY pip.conf /etc/xdg/pip/pip.conf
RUN <<EOF
# Install OpenTelemetry instrumentation
pip install opentelemetry-distro[otlp] opentelemetry-exporter-prometheus
curl -L -o otel-cli-${ CPU_ARCH }.tar.gz https://github.com/equinix-labs/otel-cli/releases/download/v0.4.5/otel-cli_0.4.5_linux_${ CPU_ARCH }.tar.gz
tar -zxf otel-cli-${ CPU_ARCH }.tar.gz
curl -L -o "otel-cli-${CPU_ARCH}.tar.gz" https://github.com/equinix-labs/otel-cli/releases/download/v0.4.5/otel-cli_0.4.5_linux_${CPU_ARCH}.tar.gz
tar -zxf "otel-cli-${CPU_ARCH}.tar.gz"
mv otel-cli /usr/local/bin/
git clone -b add-conda-build-instrumentation https://github.com/msarahan/opentelemetry-python-contrib
pip install -e ./opentelemetry-python-contrib/instrumentation/opentelemetry-instrumentation-conda-build
Expand Down
12 changes: 12 additions & 0 deletions citestwheel.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ FROM ${BASE_IMAGE}
ARG CUDA_VER=notset
ARG LINUX_VER=notset
ARG PYTHON_VER=notset
ARG CPU_ARCH=notset

# Set RAPIDS versions env variables
ENV RAPIDS_CUDA_VERSION="${CUDA_VER}"
Expand Down Expand Up @@ -91,6 +92,17 @@ python -m pip install "rapids-dependency-file-generator==1.*"
pyenv rehash
EOF

RUN <<EOF
# Install OpenTelemetry instrumentation
pip install opentelemetry-distro[otlp] opentelemetry-exporter-prometheus
curl -L -o "otel-cli-${CPU_ARCH}.tar.gz" https://github.com/equinix-labs/otel-cli/releases/download/v0.4.5/otel-cli_0.4.5_linux_${CPU_ARCH}.tar.gz
tar -zxf "otel-cli-${CPU_ARCH}.tar.gz"
mv otel-cli /usr/local/bin/
git clone -b add-conda-build-instrumentation https://github.com/msarahan/opentelemetry-python-contrib
pip install -e ./opentelemetry-python-contrib/instrumentation/opentelemetry-instrumentation-conda-build
opentelemetry-bootstrap -a install
EOF

# Install latest gha-tools
RUN wget https://github.com/rapidsai/gha-tools/releases/latest/download/tools.tar.gz -O - \
| tar -xz -C /usr/local/bin
Expand Down

0 comments on commit 5850eed

Please sign in to comment.