forked from StephenGoodall/OTLP-GitHubAction-Exporter
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathOTLP-GitHubAction-Exporter.yaml.coralogix.example
More file actions
34 lines (30 loc) · 1.25 KB
/
OTLP-GitHubAction-Exporter.yaml.coralogix.example
File metadata and controls
34 lines (30 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: OpenTelemetry - Export OTel Metrics Traces and Logs to Coralogix
on:
workflow_run:
workflows: ['*']
types: [completed]
permissions: read-all
env:
# Plugin settings
GITHUB_DEBUG: false # Set to true for troubleshooting
ACTION_TOKEN: ${{ secrets.GITHUB_TOKEN }}
WORKFLOW_RUN_ID: ${{ github.event.workflow_run.id }}
WORKFLOW_RUN_NAME: ${{ github.event.workflow_run.name }}
# CX endpoint settings
OTLP_PROTOCOL: HTTP
# Change to your region's endpoint (https://coralogix.com/docs/integrations/coralogix-endpoints/)
OTEL_EXPORTER_OTLP_ENDPOINT: https://ingress.eu2.coralogix.com/
OTEL_EXPORTER_OTLP_HEADERS: Authorization=Bearer ${{ secrets.CORALOGIX_API_KEY }}
GITHUB_CUSTOM_ATTS: '{"cx.application.name":"github", "cx.subsystem.name":"actions"}'
# You can override service.name or make subsystem dynamic
# GITHUB_CUSTOM_ATTS: '{"service.name":"ghapp", "cx.application.name":"ghactions", "cx.subsystem.name":${{ github.repository }}}'
jobs:
Coralogix-GitHubAction-Exporter:
name: Coralogix GitHubAction Exporter
runs-on: ubuntu-latest
if: ${{ always() }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Run Coralogix GitHubAction Exporter
uses: coralogix/OTLP-GitHubAction-Exporter@v3