Skip to content

Commit

Permalink
handle RAPIDS_OTEL_ATTRS in upload conda script
Browse files Browse the repository at this point in the history
  • Loading branch information
msarahan committed Oct 3, 2024
1 parent 46916e9 commit 8978303
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions tools/rapids-otel-wrap
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ type otel-cli >/dev/null 2>&1 && {
--start "$start" --end "$(date ${TIME_FORMAT})" \
--protocol http/protobuf \
--status-code "${RETURN_STATUS}" \
--tls-ca-cert ${OTEL_EXPORTER_OTLP_CERTIFICATE} \
--tls-client-cert ${OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE} \
--tls-client-key ${OTEL_EXPORTER_OTLP_CLIENT_KEY} \
${attrs} ${headers}
}
cleanup "$@"
Expand Down
4 changes: 2 additions & 2 deletions tools/rapids-upload-conda-to-s3
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@ pkg_name="$(rapids-package-name "$pkg_type")"
# Where conda build artifacts are output
path_to_tar_up="${RAPIDS_CONDA_BLD_OUTPUT_DIR}"

RAPIDS_OTEL_ATTRS="${RAPIDS_OTEL_ATTRS},rapids_task=upload,rapids_package_name=${pkg_name}" \
rapids-otel-wrap rapids-upload-to-s3 "${pkg_name}" "${path_to_tar_up}"
export RAPIDS_OTEL_ATTRS="${RAPIDS_OTEL_ATTRS:-},rapids_task=upload,rapids_package_name=${pkg_name}"
rapids-otel-wrap rapids-upload-to-s3 "${pkg_name}" "${path_to_tar_up}"

0 comments on commit 8978303

Please sign in to comment.