Skip to content

Latest commit

 

History

History
62 lines (40 loc) · 1.23 KB

File metadata and controls

62 lines (40 loc) · 1.23 KB

opentelemetry-github-actions-junit-receiver

Local Development

Prerequisites

Install tools

Ngrok

The Ngrok can be installed by running:

make install-ngrok

ocb

The OpenTelemetry Collector Builder (OCB) can be installed by running:

make install-ocb

Build the collector

make build

Configure your GitHub repository for testing purposes

Open one terminal and run

make ngrok

Copy the ngrok URL and go to your GitHub repository, in this case we use elastic/oblt-project-tmpl:

  • https://github.com/elastic/oblt-project-tmpl/settings/hooks
    • Payload: https://3012-37-133-56-13.ngrok-free.app/githubactionsjunit or the relevant ngrok URL
    • Content type: application/json
    • Secret: secret - fixed for now for testing purposes
    • Enable SSL verification
    • Individual events:
      • Workflow runs
      • Workflow jobs

Run the collector

make run