Avoid invalid traces when EF Core and Npgsql instrumentations run together #8548
Workflow file for this run
This file contains hidden or 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: format native | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| merge_group: | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| check-native-format: | |
| name: ${{ matrix.step-name }} | |
| runs-on: ${{ matrix.runner }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - step-name: native-format-macos | |
| runner: macos-14-xlarge | |
| - step-name: native-format-linux | |
| runner: ubuntu-22.04 | |
| - step-name: native-format-windows | |
| runner: windows-2022 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # tag: v6.0.2 | |
| - name: Install Clang tools | |
| shell: bash | |
| run: ./scripts/download-clang-tools.sh | |
| - name: Format native code | |
| shell: bash | |
| run: ./scripts/format-native.sh | |
| check-native-headers: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # tag: v6.0.2 | |
| - name: Setup Go | |
| uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # tag: v6.2.0 | |
| with: | |
| go-version: '1.23.5' | |
| cache: false # Suppress a warning given that there are no go.sum files in the repo | |
| - name: Verify all native files have license headers | |
| shell: bash | |
| run: | | |
| go install github.com/google/addlicense@v1.1.1 | |
| addlicense -v -y "" -l "apache" -c "The OpenTelemetry Authors" -s=only -ignore **/lib/** src/OpenTelemetry.AutoInstrumentation.Native/ | |
| git status | |
| git diff | |
| test -z "$(git status --porcelain)" |