Add _dd.gcrfx.resource_name to serverless compatibility layer for Google Cloud Functions #4442
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'Verify trace-protobuf' | |
on: | |
pull_request: | |
types: [ opened, synchronize, reopened ] | |
env: | |
DATADOG_AGENT_TAG: "7.55.0-rc.3" | |
rust_version: "1.76.0" | |
jobs: | |
verify-proto-files: | |
name: "Verify trace-protobuf .proto files are in sync with datadog-agent" | |
runs-on: ubuntu-latest | |
permissions: | |
pull-requests: write | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
- name: diff agent_payload.proto | |
working-directory: trace-protobuf/src/pb | |
run: | | |
../../../.github/workflows/diff-proto-files.sh --file agent_payload.proto --tag ${{ env.DATADOG_AGENT_TAG }} | |
- name: diff tracer_payload.proto | |
if: success() || failure() | |
working-directory: trace-protobuf/src/pb | |
run: | | |
../../../.github/workflows/diff-proto-files.sh --file tracer_payload.proto --tag ${{ env.DATADOG_AGENT_TAG }} | |
- name: diff stats.proto | |
if: success() || failure() | |
working-directory: trace-protobuf/src/pb | |
run: | | |
../../../.github/workflows/diff-proto-files.sh --file stats.proto --tag ${{ env.DATADOG_AGENT_TAG }} | |
- name: diff span.proto | |
if: success() || failure() | |
working-directory: trace-protobuf/src/pb | |
run: | | |
../../../.github/workflows/diff-proto-files.sh --file span.proto --tag ${{ env.DATADOG_AGENT_TAG }} | |
- name: Cache | |
uses: ./.github/actions/cache | |
with: | |
rust_version: ${{ env.rust_version }} | |
- name: Install ${{ env.rust_version }} toolchain | |
run: rustup install ${{ env.rust_version }} && rustup default ${{ env.rust_version }} | |
- name: diff pb.rs | |
working-directory: trace-protobuf | |
run: | | |
cargo build --features generate-protobuf | |
git diff --exit-code -- src/pb.rs |