From d059e9b9580198d32479f88c48021aa3773c680f Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Mon, 17 Jun 2024 12:02:38 -0700
Subject: [PATCH] fix(deps): update module github.com/shirou/gopsutil/v3 to v4
(#5702)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [github.com/shirou/gopsutil/v3](https://togithub.com/shirou/gopsutil)
| `v3.24.5` -> `v4.24.5` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fshirou%2fgopsutil%2fv3/v4.24.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fshirou%2fgopsutil%2fv3/v4.24.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fshirou%2fgopsutil%2fv3/v3.24.5/v4.24.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fshirou%2fgopsutil%2fv3/v3.24.5/v4.24.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
---
### Release Notes
shirou/gopsutil (github.com/shirou/gopsutil/v3)
###
[`v4.24.5`](https://togithub.com/shirou/gopsutil/releases/tag/v4.24.5)
[Compare
Source](https://togithub.com/shirou/gopsutil/compare/v3.24.5...v4.24.5)
#### What's Changed
gopsutil v4 is released as `v4.24.5`. `v3` will not be updated except
for high level security issues.
#### Breaking Changes
- `host/SensorsTemperatures()` moved to in the new `sensors` package.
- `process.Groups()` now returns uint32.
([#1424](https://togithub.com/shirou/gopsutil/issues/1424))
- `process.Uids()` and `process.Gids()` also now uint32.
- The Pid remains int32. This is because changing it is expected to have
a significant impact.
- `mem.VirtualMemoryExStat` is now `ExVirtualMemory` with `ExLinux` and
`ExWindows`. See document about [`Ex
structs`](https://togithub.com/shirou/gopsutil?tab=readme-ov-file#ex-struct-from-v4245).
#### Other
- Add SPDX license header line.
- Remove [coveralls.io](https://coveralls.io/)
- Remove old go build tag such as `// +build`
**Full Changelog**:
https://github.com/shirou/gopsutil/compare/v3.24.5...v4.24.5
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).
🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.
â™» **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about these
updates again.
---
- [ ] If you want to rebase/retry this PR, check
this box
---
This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/open-telemetry/opentelemetry-go-contrib).
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Tyler Yahn
---
instrumentation/host/example/go.mod | 2 +-
instrumentation/host/example/go.sum | 4 ++--
instrumentation/host/go.mod | 2 +-
instrumentation/host/go.sum | 4 ++--
instrumentation/host/host.go | 8 ++++----
5 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/instrumentation/host/example/go.mod b/instrumentation/host/example/go.mod
index 9a5cb35121a..04145dc7db7 100644
--- a/instrumentation/host/example/go.mod
+++ b/instrumentation/host/example/go.mod
@@ -18,7 +18,7 @@ require (
github.com/go-ole/go-ole v1.3.0 // indirect
github.com/lufia/plan9stats v0.0.0-20240513124658-fba389f38bae // indirect
github.com/power-devops/perfstat v0.0.0-20240221224432-82ca36839d55 // indirect
- github.com/shirou/gopsutil/v3 v3.24.5 // indirect
+ github.com/shirou/gopsutil/v4 v4.24.5 // indirect
github.com/shoenig/go-m1cpu v0.1.6 // indirect
github.com/tklauser/go-sysconf v0.3.14 // indirect
github.com/tklauser/numcpus v0.8.0 // indirect
diff --git a/instrumentation/host/example/go.sum b/instrumentation/host/example/go.sum
index 75f70c2a79c..9488bdc0230 100644
--- a/instrumentation/host/example/go.sum
+++ b/instrumentation/host/example/go.sum
@@ -16,8 +16,8 @@ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZb
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/power-devops/perfstat v0.0.0-20240221224432-82ca36839d55 h1:o4JXh1EVt9k/+g42oCprj/FisM4qX9L3sZB3upGN2ZU=
github.com/power-devops/perfstat v0.0.0-20240221224432-82ca36839d55/go.mod h1:OmDBASR4679mdNQnz2pUhc2G8CO2JrUAVFDRBDP/hJE=
-github.com/shirou/gopsutil/v3 v3.24.5 h1:i0t8kL+kQTvpAYToeuiVk3TgDeKOFioZO3Ztz/iZ9pI=
-github.com/shirou/gopsutil/v3 v3.24.5/go.mod h1:bsoOS1aStSs9ErQ1WWfxllSeS1K5D+U30r2NfcubMVk=
+github.com/shirou/gopsutil/v4 v4.24.5 h1:gGsArG5K6vmsh5hcFOHaPm87UD003CaDMkAOweSQjhM=
+github.com/shirou/gopsutil/v4 v4.24.5/go.mod h1:aoebb2vxetJ/yIDZISmduFvVNPHqXQ9SEJwRXxkf0RA=
github.com/shoenig/go-m1cpu v0.1.6 h1:nxdKQNcEB6vzgA2E2bvzKIYRuNj7XNJ4S/aRSwKzFtM=
github.com/shoenig/go-m1cpu v0.1.6/go.mod h1:1JJMcUBvfNwpq05QDQVAnx3gUHr9IYF7GNg9SUEw2VQ=
github.com/shoenig/test v0.6.4 h1:kVTaSd7WLz5WZ2IaoM0RSzRsUD+m8wRR+5qvntpn4LU=
diff --git a/instrumentation/host/go.mod b/instrumentation/host/go.mod
index 45a7f2b7ab7..3c113667d8b 100644
--- a/instrumentation/host/go.mod
+++ b/instrumentation/host/go.mod
@@ -3,7 +3,7 @@ module go.opentelemetry.io/contrib/instrumentation/host
go 1.21
require (
- github.com/shirou/gopsutil/v3 v3.24.5
+ github.com/shirou/gopsutil/v4 v4.24.5
go.opentelemetry.io/otel v1.27.0
go.opentelemetry.io/otel/metric v1.27.0
)
diff --git a/instrumentation/host/go.sum b/instrumentation/host/go.sum
index ed3f3547381..5c5afd625be 100644
--- a/instrumentation/host/go.sum
+++ b/instrumentation/host/go.sum
@@ -16,8 +16,8 @@ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZb
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/power-devops/perfstat v0.0.0-20240221224432-82ca36839d55 h1:o4JXh1EVt9k/+g42oCprj/FisM4qX9L3sZB3upGN2ZU=
github.com/power-devops/perfstat v0.0.0-20240221224432-82ca36839d55/go.mod h1:OmDBASR4679mdNQnz2pUhc2G8CO2JrUAVFDRBDP/hJE=
-github.com/shirou/gopsutil/v3 v3.24.5 h1:i0t8kL+kQTvpAYToeuiVk3TgDeKOFioZO3Ztz/iZ9pI=
-github.com/shirou/gopsutil/v3 v3.24.5/go.mod h1:bsoOS1aStSs9ErQ1WWfxllSeS1K5D+U30r2NfcubMVk=
+github.com/shirou/gopsutil/v4 v4.24.5 h1:gGsArG5K6vmsh5hcFOHaPm87UD003CaDMkAOweSQjhM=
+github.com/shirou/gopsutil/v4 v4.24.5/go.mod h1:aoebb2vxetJ/yIDZISmduFvVNPHqXQ9SEJwRXxkf0RA=
github.com/shoenig/go-m1cpu v0.1.6 h1:nxdKQNcEB6vzgA2E2bvzKIYRuNj7XNJ4S/aRSwKzFtM=
github.com/shoenig/go-m1cpu v0.1.6/go.mod h1:1JJMcUBvfNwpq05QDQVAnx3gUHr9IYF7GNg9SUEw2VQ=
github.com/shoenig/test v0.6.4 h1:kVTaSd7WLz5WZ2IaoM0RSzRsUD+m8wRR+5qvntpn4LU=
diff --git a/instrumentation/host/host.go b/instrumentation/host/host.go
index c602b1450c4..722134c2054 100644
--- a/instrumentation/host/host.go
+++ b/instrumentation/host/host.go
@@ -9,10 +9,10 @@ import (
"os"
"sync"
- "github.com/shirou/gopsutil/v3/cpu"
- "github.com/shirou/gopsutil/v3/mem"
- "github.com/shirou/gopsutil/v3/net"
- "github.com/shirou/gopsutil/v3/process"
+ "github.com/shirou/gopsutil/v4/cpu"
+ "github.com/shirou/gopsutil/v4/mem"
+ "github.com/shirou/gopsutil/v4/net"
+ "github.com/shirou/gopsutil/v4/process"
"go.opentelemetry.io/otel"
"go.opentelemetry.io/otel/attribute"