Skip to content

Conversation

@ilyam8
Copy link
Member

@ilyam8 ilyam8 commented Dec 16, 2025

Summary
Test Plan
Additional Information
For users: How does this change affect me?

Summary by cubic

Include the Go runtime version in go.d build info to improve diagnostics and environment visibility. The Info() string now includes a go_version key alongside version and existing paths.

Written for commit 40d9f79. Summary will update automatically on new commits.

@ilyam8 ilyam8 requested a review from Copilot December 16, 2025 21:28
@github-actions github-actions bot added area/collectors Everything related to data collection collectors/go.d area/go labels Dec 16, 2025
@ilyam8 ilyam8 enabled auto-merge (squash) December 16, 2025 21:29
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

No issues found across 1 file

Copy link
Contributor

Copilot AI left a comment

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 adds the Go version to the build information output in the go.d plugin, allowing users and developers to identify which version of Go was used to compile the plugin.

Key changes:

  • Modified Info() function to include go_version field in the output string using runtime.Version()
Comments suppressed due to low confidence (1)

src/go/pkg/buildinfo/buildinfo.go:41

  • The Info() function now includes the Go version in its output, but there are no tests to verify this behavior. Consider adding a test to ensure the go_version field is included in the output and that runtime.Version() is called correctly.
func Info() string {
	return fmt.Sprintf(
		"version=%s go_version=%s user_config_dir=%s stock_config_dir=%s plugins_dir=%s netdata_bin_dir=%s",
		Version,
		runtime.Version(),
		UserConfigDir,
		StockConfigDir,
		PluginsDir,
		NetdataBinDir,
	)

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

@ilyam8 ilyam8 merged commit 79b7982 into netdata:master Dec 16, 2025
123 checks passed
stelfrag pushed a commit to stelfrag/netdata that referenced this pull request Dec 17, 2025
@stelfrag stelfrag mentioned this pull request Dec 17, 2025
Ferroin pushed a commit that referenced this pull request Dec 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/collectors Everything related to data collection area/go collectors/go.d

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants