A Forgejo-specific OTel trace export action that makes instrumenting CI/CD pipelines easy as pie. 🥧
Find a file
Marc Cataford 5fa0b22694
All checks were successful
/ static-analysis (push) Successful in 58s
/ export-trace (push) Successful in 1m4s
ci: add tracing
2024-10-18 23:19:50 -04:00
.forgejo/workflows ci: add tracing 2024-10-18 23:19:50 -04:00
.gitignore Initial commit 2024-10-18 04:40:13 +00:00
.pre-commit-config.yaml build: add pre-commit hooks 2024-10-18 21:10:29 -04:00
action.yaml feat: initial upload 2024-10-18 00:48:18 -04:00
Dockerfile refactor: use bin within container to invoke export function 2024-10-18 21:05:30 -04:00
pyproject.toml build: add pre-commit hooks 2024-10-18 21:10:29 -04:00
README.md docs: add notice about read mirror 2024-10-18 23:05:46 -04:00
requirements.txt feat: initial upload 2024-10-18 00:48:18 -04:00
tracer.py build: add pre-commit hooks 2024-10-18 21:10:29 -04:00
uv.lock build: add pre-commit hooks 2024-10-18 21:10:29 -04:00

opentelemetry-trace-export-forgejo-action

Handles the export of OTel traces from Forgejo Actions.

Read mirror & usage

If you'd like to use this in your flows, kindly use the Gitlab mirror URL.


Usage

The action pulls action run metadata from non-documented Forgejo APIs and run context data; as long as it runs as the last step, it should capture details from every job in the pipeline.

jobs:
  stepA:
    ...
  stepB:
    ...
  export-otel-traces:
    ...
    needs: [stepA, stepB]
    steps:
      - uses: https://forge.karnov.club/marc/opentelemetry-trace-export-forgejo-action
        with:
          otlp-endpoint: <GRPC endpoint to send traces to>
          otlp-service-name: <Service name to attach to traces>
          forgejo-token: <Action-scoped token>
          forgejo-base-url: <Base url of the Forgejo instance where the actions are running>
          run-id: <Current CI run ID>
          repo-name: <Current repository name>