From a11d371cf398710a33f5e9f5253cf08ece2a0485 Mon Sep 17 00:00:00 2001 From: Victor Martinez Date: Thu, 14 Mar 2024 09:42:00 +0100 Subject: [PATCH] github-action: enable opentelemetry for tracing GitHub actions (#206) Use Observability for the CICD --- .github/workflows/opentelemetry.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/opentelemetry.yml 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 }}