Skip to content

Conversation

@WVerlaek
Copy link
Member

@WVerlaek WVerlaek commented Jan 9, 2026

Description

Add GITHUB_HEAD_REF to OTEL tracing attributes. In PR contexts, GITHUB_REF is refs/pull/<number>/merge which doesn't show the branch name. GITHUB_HEAD_REF contains the source branch name.

Related Issue(s)

N/A

How to test

  1. Run a build in a PR workflow
  2. Check OTEL traces for github.head_ref attribute containing the source branch name

In PR contexts, GITHUB_REF is refs/pull/<number>/merge which doesn't
show the branch name. GITHUB_HEAD_REF contains the source branch name.

Co-authored-by: Ona <[email protected]>
@WVerlaek WVerlaek marked this pull request as ready for review January 9, 2026 16:45
@WVerlaek WVerlaek requested a review from kylos101 January 9, 2026 16:46
@WVerlaek WVerlaek merged commit e0cc628 into main Jan 9, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants