Skip to content

Conversation

mauri870
Copy link
Member

@mauri870 mauri870 commented Aug 12, 2025

Proposed commit message

This PR fixes fatal go vet errors on calls to logp functions. Release v0.22.1 of elastic-agent-libs enabled proper go vet support for printf style calls in logp, and that uncovered many misuses of printing directives.

Checklist

  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have made corresponding change to the default configuration files
  • I have added tests that prove my fix is effective or that my feature works
  • I have added an entry in CHANGELOG.next.asciidoc or CHANGELOG-developer.next.asciidoc.

How to test

$ go get -u github.com/elastic/[email protected]
$ go vet ./...

Related issues

@mauri870 mauri870 self-assigned this Aug 12, 2025
@mauri870 mauri870 added the Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team label Aug 12, 2025
@botelastic botelastic bot added needs_team Indicates that the issue/PR needs a Team:* label and removed needs_team Indicates that the issue/PR needs a Team:* label labels Aug 12, 2025
Copy link
Contributor

🤖 GitHub comments

Expand to view the GitHub comments

Just comment with:

  • run docs-build : Re-trigger the docs validation. (use unformatted text in the comment!)

@mauri870 mauri870 changed the title chore: fix formatting for logp calls chore: fix formatting issues in logp printf-style calls Aug 12, 2025
Copy link
Contributor

mergify bot commented Aug 12, 2025

This pull request does not have a backport label.
If this is a bug or security fix, could you label this PR @mauri870? 🙏.
For such, you'll need to label your PR with:

  • The upcoming major version of the Elastic Stack
  • The upcoming minor version of the Elastic Stack (if you're not pushing a breaking change)

To fixup this pull request, you need to add the backport labels for the needed
branches, such as:

  • backport-8./d is the label to automatically backport to the 8./d branch. /d is the digit
  • backport-active-all is the label that automatically backports to all active branches.
  • backport-active-8 is the label that automatically backports to all active minor branches for the 8 major.
  • backport-active-9 is the label that automatically backports to all active minor branches for the 9 major.

@mauri870 mauri870 marked this pull request as ready for review August 12, 2025 18:47
@mauri870 mauri870 requested review from a team as code owners August 12, 2025 18:47
@elasticmachine
Copy link
Collaborator

Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane)

@mauri870 mauri870 added backport-active-9 Automated backport with mergify to all the active 9.[0-9]+ branches backport-8.19 Automated backport to the 8.19 branch labels Aug 12, 2025
@cmacknz cmacknz merged commit a5be2a8 into elastic:main Aug 20, 2025
206 of 212 checks passed
Copy link
Contributor

@Mergifyio backport 9.0 9.1

Copy link
Contributor

mergify bot commented Aug 20, 2025

backport 9.0 9.1

✅ Backports have been created

mergify bot pushed a commit that referenced this pull request Aug 20, 2025
* fix go vet errors for logp formatting issues

* chore: fix formatting for logp calls

* revert elastic-agent-libs bump

* Apply suggestions from code review

Co-authored-by: Tiago Queiroz <[email protected]>

---------

Co-authored-by: Tiago Queiroz <[email protected]>
Co-authored-by: Blake Rouse <[email protected]>
(cherry picked from commit a5be2a8)

# Conflicts:
#	filebeat/input/journald/input.go
#	filebeat/input/log/input.go
#	libbeat/autodiscover/appenders/config/config.go
#	libbeat/autodiscover/template/config.go
#	libbeat/conditions/range.go
#	libbeat/scripts/cmd/stress_pipeline/main.go
#	metricbeat/module/kafka/consumergroup/query.go
#	metricbeat/module/kafka/partition/partition.go
#	metricbeat/module/kubernetes/util/kubernetes.go
#	metricbeat/module/linux/rapl/rapl.go
#	x-pack/filebeat/input/awss3/sqs_s3_event.go
#	x-pack/metricbeat/module/meraki/device_health/device_health.go
#	x-pack/metricbeat/module/meraki/http.go
#	x-pack/metricbeat/module/prometheus/remote_write/data.go
mergify bot pushed a commit that referenced this pull request Aug 20, 2025
* fix go vet errors for logp formatting issues

* chore: fix formatting for logp calls

* revert elastic-agent-libs bump

* Apply suggestions from code review

Co-authored-by: Tiago Queiroz <[email protected]>

---------

Co-authored-by: Tiago Queiroz <[email protected]>
Co-authored-by: Blake Rouse <[email protected]>
(cherry picked from commit a5be2a8)

# Conflicts:
#	libbeat/autodiscover/appenders/config/config.go
#	libbeat/autodiscover/template/config.go
#	x-pack/filebeat/input/awss3/sqs_s3_event.go
#	x-pack/metricbeat/module/prometheus/remote_write/data.go
mergify bot pushed a commit that referenced this pull request Aug 20, 2025
* fix go vet errors for logp formatting issues

* chore: fix formatting for logp calls

* revert elastic-agent-libs bump

* Apply suggestions from code review

Co-authored-by: Tiago Queiroz <[email protected]>

---------

Co-authored-by: Tiago Queiroz <[email protected]>
Co-authored-by: Blake Rouse <[email protected]>
(cherry picked from commit a5be2a8)

# Conflicts:
#	metricbeat/module/kubernetes/util/kubernetes.go
#	x-pack/filebeat/input/awss3/sqs_s3_event.go
mauri870 added a commit that referenced this pull request Aug 21, 2025
…yle calls (#46122)

* chore: fix formatting issues in logp printf-style calls (#45944)

* fix go vet errors for logp formatting issues

* chore: fix formatting for logp calls

* revert elastic-agent-libs bump

* Apply suggestions from code review

Co-authored-by: Tiago Queiroz <[email protected]>

---------

Co-authored-by: Tiago Queiroz <[email protected]>
Co-authored-by: Blake Rouse <[email protected]>
(cherry picked from commit a5be2a8)

# Conflicts:
#	filebeat/input/journald/input.go
#	filebeat/input/log/input.go
#	libbeat/autodiscover/appenders/config/config.go
#	libbeat/autodiscover/template/config.go
#	libbeat/conditions/range.go
#	libbeat/scripts/cmd/stress_pipeline/main.go
#	metricbeat/module/kafka/consumergroup/query.go
#	metricbeat/module/kafka/partition/partition.go
#	metricbeat/module/kubernetes/util/kubernetes.go
#	metricbeat/module/linux/rapl/rapl.go
#	x-pack/filebeat/input/awss3/sqs_s3_event.go
#	x-pack/metricbeat/module/meraki/device_health/device_health.go
#	x-pack/metricbeat/module/meraki/http.go
#	x-pack/metricbeat/module/prometheus/remote_write/data.go

* fix conflicts

* remove file not present in branch

---------

Co-authored-by: Mauri de Souza Meneguzzo <[email protected]>
Co-authored-by: Khushi Jain <[email protected]>
mauri870 added a commit that referenced this pull request Aug 25, 2025
…yle calls (#46123)

* chore: fix formatting issues in logp printf-style calls (#45944)

* fix go vet errors for logp formatting issues

* chore: fix formatting for logp calls

* revert elastic-agent-libs bump

* Apply suggestions from code review

Co-authored-by: Tiago Queiroz <[email protected]>

---------

Co-authored-by: Tiago Queiroz <[email protected]>
Co-authored-by: Blake Rouse <[email protected]>
(cherry picked from commit a5be2a8)

# Conflicts:
#	libbeat/autodiscover/appenders/config/config.go
#	libbeat/autodiscover/template/config.go
#	x-pack/filebeat/input/awss3/sqs_s3_event.go
#	x-pack/metricbeat/module/prometheus/remote_write/data.go

* fix conflicts

---------

Co-authored-by: Mauri de Souza Meneguzzo <[email protected]>
pierrehilbert pushed a commit that referenced this pull request Sep 2, 2025
…tyle calls (#46124)

* chore: fix formatting issues in logp printf-style calls (#45944)

* fix go vet errors for logp formatting issues

* chore: fix formatting for logp calls

* revert elastic-agent-libs bump

* Apply suggestions from code review

Co-authored-by: Tiago Queiroz <[email protected]>

---------

Co-authored-by: Tiago Queiroz <[email protected]>
Co-authored-by: Blake Rouse <[email protected]>
(cherry picked from commit a5be2a8)

# Conflicts:
#	metricbeat/module/kubernetes/util/kubernetes.go
#	x-pack/filebeat/input/awss3/sqs_s3_event.go

* fix conflicts

---------

Co-authored-by: Mauri de Souza Meneguzzo <[email protected]>
@mauri870 mauri870 added the backport-active-8 Automated backport with mergify to all the active 8.[0-9]+ branches label Oct 2, 2025
Copy link
Contributor

github-actions bot commented Oct 2, 2025

@Mergifyio backport 8.18 8.19 9.0 9.1 9.2

Copy link
Contributor

mergify bot commented Oct 2, 2025

backport 8.18 8.19 9.0 9.1 9.2

✅ Backports have been created

@mauri870 mauri870 added backport-8.18 Automated backport to the 8.18 branch and removed backport-active-8 Automated backport with mergify to all the active 8.[0-9]+ branches labels Oct 2, 2025
mergify bot pushed a commit that referenced this pull request Oct 2, 2025
* fix go vet errors for logp formatting issues

* chore: fix formatting for logp calls

* revert elastic-agent-libs bump

* Apply suggestions from code review

Co-authored-by: Tiago Queiroz <[email protected]>

---------

Co-authored-by: Tiago Queiroz <[email protected]>
Co-authored-by: Blake Rouse <[email protected]>
(cherry picked from commit a5be2a8)

# Conflicts:
#	filebeat/input/log/input.go
#	libbeat/autodiscover/appenders/config/config.go
#	libbeat/autodiscover/template/config.go
#	libbeat/conditions/range.go
#	libbeat/scripts/cmd/stress_pipeline/main.go
#	metricbeat/module/kafka/consumergroup/query.go
#	metricbeat/module/kafka/partition/partition.go
#	metricbeat/module/kubernetes/util/kubernetes.go
#	metricbeat/module/linux/rapl/rapl.go
#	x-pack/filebeat/input/awss3/sqs_s3_event.go
#	x-pack/metricbeat/module/meraki/device_health/device_health.go
#	x-pack/metricbeat/module/meraki/http.go
#	x-pack/metricbeat/module/prometheus/remote_write/data.go
mergify bot pushed a commit that referenced this pull request Oct 2, 2025
* fix go vet errors for logp formatting issues

* chore: fix formatting for logp calls

* revert elastic-agent-libs bump

* Apply suggestions from code review

Co-authored-by: Tiago Queiroz <[email protected]>

---------

Co-authored-by: Tiago Queiroz <[email protected]>
Co-authored-by: Blake Rouse <[email protected]>
(cherry picked from commit a5be2a8)

# Conflicts:
#	libbeat/processors/add_host_metadata/add_host_metadata.go
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-8.18 Automated backport to the 8.18 branch backport-8.19 Automated backport to the 8.19 branch backport-active-9 Automated backport with mergify to all the active 9.[0-9]+ branches Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team
Projects
None yet
Development

Successfully merging this pull request may close these issues.