Skip to content

Commit

Permalink
add telemetry installs to ci-conda and ci-wheel
Browse files Browse the repository at this point in the history
  • Loading branch information
msarahan committed Oct 10, 2024
1 parent 2bab2bc commit f49f810
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
11 changes: 11 additions & 0 deletions ci-conda.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,19 @@ wget https://github.com/cli/cli/releases/download/v${GH_CLI_VER}/gh_${GH_CLI_VER
tar -xf gh_*.tar.gz
mv gh_*/bin/gh /usr/local/bin
rm -rf gh_*

# Install OpenTelemetry instrumentation
pip install opentelemetry-distro[otlp] opentelemetry-exporter-prometheus
curl -L -o otel-cli-${CPU_ARCH}.deb https://github.com/equinix-labs/otel-cli/releases/download/v0.4.5/otel-cli_0.4.5_linux_${CPU_ARCH}.deb
dpkg -i otel-cli-${CPU_ARCH}.deb
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
git clone https://github.com/msarahan/gha-tools.git -b main /tmp/gha-tools
echo "/tmp/gha-tools/tools" >> "${GITHUB_PATH}"
EOF


# Install codecov from source distribution
ARG CODECOV_VER=notset
RUN <<EOF
Expand Down
12 changes: 12 additions & 0 deletions ci-wheel.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -155,4 +155,16 @@ RUN git config --system --add safe.directory '*'
# Add pip.conf
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}.deb https://github.com/equinix-labs/otel-cli/releases/download/v0.4.5/otel-cli_0.4.5_linux_${CPU_ARCH}.deb
dpkg -i otel-cli-${CPU_ARCH}.deb
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
git clone https://github.com/msarahan/gha-tools.git -b main /tmp/gha-tools
echo "/tmp/gha-tools/tools" >> "${GITHUB_PATH}"
EOF

CMD ["/bin/bash"]

0 comments on commit f49f810

Please sign in to comment.