An action to generate and export export workflow runs as OpenTelemetry traces
Caution
This action is very experimental. While it shouldn't break anything, do set your expectations around stability accordingly.
The action is meant to be called after a workflow run has completed.
A workflow that triggers on workflow_run is a good starting point.
on:
workflow_run:
types:
- completed
workflows:
- list
- your
- workflows
- hereYou can find an example in this repository at .github/workflows/export-traces.yml
The action is using @opentelemetry/exporter-trace-otlp-proto. As such, you can refer to the OpenTelemetry Exporter configuration page for more information.
alternatively, you can also include an OpenTelemetry Collector with Docker in your workflow to cover cases that are not supported out of the box.
The only permission required is actions: read,
in order to read your workflow's information.
All inputs are required
The attempt number of the run
Usually ${{ github.event.workflow_run.run_attempt }}
The owner of the repository where the workflow ran
Usually ${{ github.event.workflow_run.repository.owner.login }}
The repository where the workflow ran
Usually ${{ github.event.workflow_run.repository.name }}
The ID of the run to export
Usually ${{ github.event.workflow_run.id }}
The GitHub token to access the run information
Usually ${{ secrets.GITHUB_TOKEN }}