Export Workflow Telemetry #1603
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Export Workflow Telemetry | |
| on: | |
| workflow_run: | |
| # To avoid trigger on self in an infinite loop list all workflows | |
| # that should trigger workflow telemetry exporting explicitly. | |
| workflows: | |
| - tests | |
| - examples | |
| types: [completed] | |
| permissions: | |
| # Required to read workflow data and export telemetry on workflow_run event. | |
| actions: read | |
| jobs: | |
| send-telemetry: | |
| name: Send | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Export Workflow Telemetry | |
| uses: ClickHouse/github-actions-opentelemetry@166e4f803ea5857cfcd90502d99fd35ccb20de32 | |
| env: | |
| OTEL_SERVICE_NAME: github-actions | |
| OTEL_EXPORTER_OTLP_ENDPOINT: ${{ secrets.OTEL_EXPORTER_OTLP_ENDPOINT }} | |
| OTEL_EXPORTER_OTLP_HEADERS: 'authorization=${{ secrets.OTEL_EXPORTER_OTLP_API_KEY }}' | |
| OTEL_RESOURCE_ATTRIBUTES: 'service.namespace=clickhouse-js' | |
| with: | |
| # Required for collecting workflow data | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |