From 4de9a07b3ffc7e86beb218bbc086b6c3db4544c7 Mon Sep 17 00:00:00 2001 From: Victor Martinez Date: Tue, 6 Feb 2024 12:44:57 +0100 Subject: [PATCH] github-action: enable opentelemetry and use checkout@v4 (#45) * github-action: enable opentelemetry * use v4 --- .github/workflows/ci.yml | 4 ++-- .github/workflows/license.yml | 2 +- .github/workflows/opentelemetry.yml | 23 +++++++++++++++++++++++ 3 files changed, 26 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/opentelemetry.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a42ca80..3ac61ee 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,7 +18,7 @@ jobs: test-windows: runs-on: windows-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: fetch-depth: 1 - run: | @@ -43,7 +43,7 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: fetch-depth: 1 - run: | diff --git a/.github/workflows/license.yml b/.github/workflows/license.yml index c42f591..1528a9f 100644 --- a/.github/workflows/license.yml +++ b/.github/workflows/license.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Check license headers run: | diff --git a/.github/workflows/opentelemetry.yml b/.github/workflows/opentelemetry.yml new file mode 100644 index 0000000..485a43d --- /dev/null +++ b/.github/workflows/opentelemetry.yml @@ -0,0 +1,23 @@ +--- +# Look up results at https://ela.st/oblt-ci-cd-stats +# There will be one service per GitHub repository, including the org name, and one Transaction per Workflow. +name: OpenTelemetry Export Trace + +on: + workflow_run: + workflows: [ "*" ] + types: [completed] + +permissions: + contents: read + actions: read + +jobs: + otel-export-trace: + runs-on: ubuntu-latest + steps: + - uses: elastic/apm-pipeline-library/.github/actions/opentelemetry@current + with: + vaultUrl: ${{ secrets.VAULT_ADDR }} + vaultRoleId: ${{ secrets.VAULT_ROLE_ID }} + vaultSecretId: ${{ secrets.VAULT_SECRET_ID }}