Skip to content

Commit

Permalink
swap out final update for standard blob
Browse files Browse the repository at this point in the history
  • Loading branch information
msarahan committed Nov 1, 2024
1 parent 565dcec commit 444c969
Showing 1 changed file with 24 additions and 30 deletions.
54 changes: 24 additions & 30 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -412,34 +412,28 @@ jobs:
sccache -s;
final-telemetry-update:
runs-on: ubuntu-latest
needs: [pr-builder, reexports, top-level-telemetry-traceparent]
needs:
- reexports
- top-level-telemetry-traceparent
- pr-builder
steps:
- name: Get final timestamp
id: timestamp
run:
echo "FINAL_TIME=$(date +%s.%N)" >> ${GITHUB_OUTPUT}
# Main purpose of this traceparent line here is to ensure that otel-cli is installed.
- name: Get job traceparent
uses: rapidsai/shared-actions/telemetry-traceparent@add-telemetry
- name: Write certificate files for mTLS
run: |
mkdir -p /tmp/certs
cat << EOF > ${OTEL_EXPORTER_OTLP_CERTIFICATE}
${{ secrets.OTEL_EXPORTER_OTLP_CA_CERTIFICATE }}
EOF
cat << EOF > ${OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE}
${{ secrets.OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE }}
EOF
cat << EOF > ${OTEL_EXPORTER_OTLP_CLIENT_KEY}
${{ secrets.OTEL_EXPORTER_OTLP_CLIENT_KEY }}
EOF
- name: Update root span with final completion time
if: always()
uses: rapidsai/shared-actions/telemetry-create-span@add-telemetry
with:
service: ${{needs.telemetry-setup.outputs.top_level_service_name}}
name: "end-of-job update"
default_endpoint: "${{needs.telemetry-setup.outputs.endpoint}}"
traceparent: ${{needs.telemetry-setup.outputs.traceparent}}
start_time: ${{needs.telemetry-setup.outputs.start_time}}
end_time: ${{steps.timestamp.outputs.FINAL_TIME}}
- name: Clone shared-actions repo
uses: actions/checkout@v4
with:
repository: ${{needs.reexports.outputs.shared_actions_repo}}
ref: ${{needs.reexports.outputs.shared_actions_ref}}
path: ./shared-actions
- name: Send summary
uses: ./shared-actions/telemetry-summarize
with:
traceparent: ${{needs.top-level-telemetry-traceparent.outputs.traceparent}}
ca_cert: "${{secrets.OTEL_EXPORTER_OTLP_CA_CERTIFICATE}}"
client_cert: "${{secrets.OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE}}"
client_key: "${{secrets.OTEL_EXPORTER_OTLP_CLIENT_KEY}}"
- name: Send root span with final time
uses: ./shared-actions/telemetry-finalize-root-span
with:
traceparent: ${{needs.top-level-telemetry-traceparent.outputs.traceparent}}
ca_cert: "${{secrets.OTEL_EXPORTER_OTLP_CA_CERTIFICATE}}"
client_cert: "${{secrets.OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE}}"
client_key: "${{secrets.OTEL_EXPORTER_OTLP_CLIENT_KEY}}"

0 comments on commit 444c969

Please sign in to comment.