niwoerner / gitlabreceiver

The Gitlabreciever creates OpenTelemetry traces for Gitlab pipelines. It leverages the Gitlab builtin webhooks. Each time a pipeline status changes, Gitlab emits a webhook to the Gitlabreceiver. The Gitlabreceiver transforms the received event into a trace.
Apache License 2.0
4 stars 0 forks source link

CLI emitter / demo #24

Open abitrolly opened 1 week ago

abitrolly commented 1 week ago

It would be more fun if the tool could have CLI interface to test its output.

For example, just showing JSON log of transformed events, ot piping them to https://github.com/CtrlSpice/otel-desktop-viewer

The tool could use glab ci status --live mechanism (https://gitlab.com/gitlab-org/cli/-/blob/main/commands/ci/status/status.go?ref_type=heads#L42) for getting events without configuring webhooks and a separate public web server to catch them.

niwoerner commented 1 week ago

@abitrolly You can simply build a custom collector which should allow you to configure it like you mentioned, can't you?

The glab ci status command looks interesting. I will look into this

abitrolly commented 1 week ago

I don't know. It needs time to investigate.