Skip to content

Commit 84ec069

Browse files
authored
Update otel-export.yaml
1 parent d3df799 commit 84ec069

File tree

1 file changed

+35
-11
lines changed

1 file changed

+35
-11
lines changed

.github/workflows/otel-export.yaml

Lines changed: 35 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,43 @@
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
222

323
on:
424
workflow_run:
525
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 }}
733

834
jobs:
9-
otel-export-trace:
10-
name: OpenTelemetry Export Trace
35+
new-relic-exporter:
36+
name: new-relic-exporter
1137
runs-on: ubuntu-latest
38+
if: ${{ always() }}
1239
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

Comments
 (0)