|
1 | | -name: OpenTelemetry Export Trace |
| 1 | +# name: OpenTelemetry Export Trace |
| 2 | + |
| 3 | +# on: |
| 4 | +# workflow_run: |
| 5 | +# workflows: ['*'] |
| 6 | +# types: [completed] |
| 7 | + |
| 8 | +# jobs: |
| 9 | +# otel-export-trace: |
| 10 | +# name: OpenTelemetry Export Trace |
| 11 | +# runs-on: ubuntu-latest |
| 12 | +# steps: |
| 13 | +# - name: Export Workflow Trace |
| 14 | +# uses: inception-health/otel-export-trace-action@latest |
| 15 | +# with: |
| 16 | +# otlpEndpoint: https://otlp.eu01.nr-data.net:443/ |
| 17 | +# otlpHeaders: '{"Content-Type": "application/json", "authorization": "Basic ${{ secrets.NEW_RELIC_LICENSE_KEY }}"}' |
| 18 | +# githubToken: ${{ secrets.GITHUB_TOKEN }} |
| 19 | +# runId: ${{ github.event.workflow_run.id }} |
| 20 | + |
| 21 | +name: new-relic-exporter |
2 | 22 |
|
3 | 23 | on: |
4 | 24 | workflow_run: |
5 | 25 | workflows: ['*'] |
6 | | - types: [completed] |
| 26 | + types: [completed] # defaults to run on every completed workflow run event |
| 27 | + |
| 28 | +env: |
| 29 | + GHA_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 30 | + NEW_RELIC_LICENSE_KEY: ${{ secrets.NEW_RELIC_LICENSE_KEY }} |
| 31 | + GHA_RUN_ID: ${{ github.event.workflow_run.id }} |
| 32 | + GHA_RUN_NAME: ${{ github.event.workflow_run.name }} |
7 | 33 |
|
8 | 34 | jobs: |
9 | | - otel-export-trace: |
10 | | - name: OpenTelemetry Export Trace |
| 35 | + new-relic-exporter: |
| 36 | + name: new-relic-exporter |
11 | 37 | runs-on: ubuntu-latest |
| 38 | + if: ${{ always() }} |
12 | 39 | steps: |
13 | | - - name: Export Workflow Trace |
14 | | - uses: inception-health/otel-export-trace-action@latest |
15 | | - with: |
16 | | - otlpEndpoint: https://otlp.eu01.nr-data.net:443/ |
17 | | - otlpHeaders: '{"Content-Type": "application/json", "authorization": "Basic ${{ secrets.NEW_RELIC_LICENSE_KEY }}"}' |
18 | | - githubToken: ${{ secrets.GITHUB_TOKEN }} |
19 | | - runId: ${{ github.event.workflow_run.id }} |
| 40 | + - name: Checkout |
| 41 | + uses: actions/checkout@v3 |
| 42 | + - name: new-relic-exporter |
| 43 | + uses: newrelic-experimental/gha-new-relic-exporter@latest |
0 commit comments