Skip to content

Commit

Permalink
action: use composite action (#34276)
Browse files Browse the repository at this point in the history
  • Loading branch information
v1v authored Jan 16, 2023
1 parent e13355c commit 9264b53
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions .github/workflows/opentelemetry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ on:
workflow_run:
workflows:
- check-auditbeat
- check-default
- check-dev-tools
- check-docs
- check-filebeat
- check-heartbeat
- check-libbeat
Expand Down Expand Up @@ -34,19 +36,14 @@ on:
- x-pack-metricbeat
- x-pack-osquerybeat
- x-pack-packetbeat
- check-default
- check-docs
types: [completed]

jobs:
otel-export-trace:
name: OpenTelemetry Export Trace
runs-on: ubuntu-latest
steps:
- name: Export Workflow Trace
uses: inception-health/otel-export-trace-action@latest
- uses: elastic/apm-pipeline-library/.github/actions/opentelemetry@current
with:
otlpEndpoint: "${{ secrets.APM_SERVER }}"
otlpHeaders: "Authorization=Bearer ${{ secrets.APM_TOKEN }}"
githubToken: ${{ secrets.GITHUB_TOKEN }}
runId: ${{ github.event.workflow_run.id }}
vaultUrl: ${{ secrets.VAULT_ADDR }}
vaultRoleId: ${{ secrets.VAULT_ROLE_ID }}
vaultSecretId: ${{ secrets.VAULT_SECRET_ID }}

0 comments on commit 9264b53

Please sign in to comment.