{"repo":"mdelapenya/junit2otlp","free":true,"listed":false,"github":"https://github.com/mdelapenya/junit2otlp","clone":"git clone https://github.com/mdelapenya/junit2otlp.git","description":"A jUnit parser that sends metrics and traces using OpenTelemetry","language":"Go","stars":15,"topics":["opentelemetry","junit","golang","cicd","github-actions","jenkins","gitlab-runner"],"license":"Apache-2.0","category":"deployment-docker-iac","readme_excerpt":"junit2otlp This simple CLI, written in Go, is sending jUnit metrics to a back-end using Open Telemetry. Inspired by https://github.com/axw/test2otlp, which sends traces and spans for go test JSON events as they occur. Background As jUnit represents a de-facto standard for test results in every programming language, this tool consumes the XML files produced by the test runner (or a tool converting to xUnit format), sending metrics to one or more open-source or commercial back-ends with Open Telemetry. Supported CI runners This tool will work in the context of a CI runner, such as a Github action, a Jenkins job, a Gitlab runner, or even a local execution. This is important because it will use the context of the CI execution to infer the attributes to be added to the OpenTelemetry traces and spans. In particular the order of evaluation to detect the right execution context is the following: Local execution It reads the environment variables that are avaible in the context of a local execution, representing the fallback if no context is discovered: Github Actions It reads the environment variables that are avaible in the context of a Github Action execution: Jenkins multibranch pipelines It reads the environment variables that are avaible in the context of a Jenkins multibranch pipeline execution: Gitlab Runners It reads the environment variables that are avaible in the context of a Gitlab runner execution: OpenTelemetry configuration This tool is able to override the following a","default_branch":null,"files":null,"tree":[],"storefront":"/r/mdelapenya","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/mdelapenya/junit2otlp/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}