Skip to content

Add SHA info to version#326

Merged
lstruman merged 1 commit into
rdkcentral:developfrom
rvsubbu:rv_dev
Jul 7, 2026
Merged

Add SHA info to version#326
lstruman merged 1 commit into
rdkcentral:developfrom
rvsubbu:rv_dev

Conversation

@rvsubbu

@rvsubbu rvsubbu commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

We want the version-SHA to be added to the traces instead of just the version.

Copilot AI review requested due to automatic review settings July 7, 2026 21:57

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates tracing initialization so OpenTelemetry service.version can include the build SHA (instead of only the version), with a fallback to a build-time version when the config value is empty.

Changes:

  • Updates initAppData parsing of webconfig.code_git_commit to populate appVersion from the config string.
  • Adds fallback logic to use common.BinaryVersion when code_git_commit is empty.
  • Adds common import to support the fallback.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread tracing/tracer.go
@lstruman lstruman merged commit 890df52 into rdkcentral:develop Jul 7, 2026
3 of 4 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 7, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants