From d0b0023695fe24a554bd6a81acb1d1216b750a95 Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Mon, 27 Nov 2023 19:05:32 -0800
Subject: [PATCH] fix(deps): update module github.com/open-telemetry/opamp-go
to v0.10.0 (#29475)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
[![Mend Renovate logo
banner](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
|
[github.com/open-telemetry/opamp-go](https://togithub.com/open-telemetry/opamp-go)
| require | minor | `v0.9.0` -> `v0.10.0` |
|
[github.com/open-telemetry/opamp-go](https://togithub.com/open-telemetry/opamp-go)
| require | minor | `v0.8.0` -> `v0.10.0` |
---
> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.
---
### Release Notes
open-telemetry/opamp-go
(github.com/open-telemetry/opamp-go)
###
[`v0.10.0`](https://togithub.com/open-telemetry/opamp-go/releases/tag/v0.10.0)
[Compare
Source](https://togithub.com/open-telemetry/opamp-go/compare/v0.9.0...v0.10.0)
##### What's Changed
- Move certs & helper code from /internal/examples to /internal by
[@srikanthccv](https://togithub.com/srikanthccv) in
[https://github.com/open-telemetry/opamp-go/pull/201](https://togithub.com/open-telemetry/opamp-go/pull/201)
- Rewind the request body for retries by
[@srikanthccv](https://togithub.com/srikanthccv) in
[https://github.com/open-telemetry/opamp-go/pull/194](https://togithub.com/open-telemetry/opamp-go/pull/194)
- Update to OpAMP spec 0.8.0 by
[@tigrannajaryan](https://togithub.com/tigrannajaryan) in
[https://github.com/open-telemetry/opamp-go/pull/207](https://togithub.com/open-telemetry/opamp-go/pull/207)
**Full Changelog**:
https://github.com/open-telemetry/opamp-go/compare/v0.9.0...v0.10.0
---
### Configuration
📅 **Schedule**: Branch creation - "on tuesday" (UTC), 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-collector-contrib).
---------
Signed-off-by: Alex Boten
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: opentelemetrybot <107717825+opentelemetrybot@users.noreply.github.com>
Co-authored-by: Alex Boten
---
cmd/opampsupervisor/go.mod | 2 +-
cmd/opampsupervisor/go.sum | 4 ++--
cmd/opampsupervisor/supervisor/supervisor.go | 10 +++++-----
extension/opampextension/go.mod | 2 +-
extension/opampextension/go.sum | 4 ++--
5 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/cmd/opampsupervisor/go.mod b/cmd/opampsupervisor/go.mod
index 26b47e0e5646..dd269a762f8d 100644
--- a/cmd/opampsupervisor/go.mod
+++ b/cmd/opampsupervisor/go.mod
@@ -9,7 +9,7 @@ require (
github.com/knadh/koanf/providers/rawbytes v0.1.0
github.com/knadh/koanf/v2 v2.0.1
github.com/oklog/ulid/v2 v2.1.0
- github.com/open-telemetry/opamp-go v0.8.0
+ github.com/open-telemetry/opamp-go v0.10.0
go.opentelemetry.io/collector/config/configtls v0.89.1-0.20231127181443-575c5f5e2531
go.uber.org/zap v1.26.0
)
diff --git a/cmd/opampsupervisor/go.sum b/cmd/opampsupervisor/go.sum
index 8591ab1cf34c..41e15258f39f 100644
--- a/cmd/opampsupervisor/go.sum
+++ b/cmd/opampsupervisor/go.sum
@@ -29,8 +29,8 @@ github.com/mitchellh/reflectwalk v1.0.2 h1:G2LzWKi524PWgd3mLHV8Y5k7s6XUvT0Gef6zx
github.com/mitchellh/reflectwalk v1.0.2/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw=
github.com/oklog/ulid/v2 v2.1.0 h1:+9lhoxAP56we25tyYETBBY1YLA2SaoLvUFgrP2miPJU=
github.com/oklog/ulid/v2 v2.1.0/go.mod h1:rcEKHmBBKfef9DhnvX7y1HZBYxjXb0cP5ExxNsTT1QQ=
-github.com/open-telemetry/opamp-go v0.8.0 h1:ub2j96T3GzxCD5R+VDtN6iPUv4k2jgdyISi1d1BZ89I=
-github.com/open-telemetry/opamp-go v0.8.0/go.mod h1:IMdeuHGVc5CjKSu5/oNV0o+UmiXuahoHvoZ4GOmAI9M=
+github.com/open-telemetry/opamp-go v0.10.0 h1:3PdhoKcKY1lPrfdXnsxeLlXluE+Xe1Uc/CpJ4I8uUJ0=
+github.com/open-telemetry/opamp-go v0.10.0/go.mod h1:Pfmm5EdWqZCG0dZAJjAinlra3yEpqK5StCblxpbEp6Q=
github.com/pborman/getopt v0.0.0-20170112200414-7148bc3a4c30/go.mod h1:85jBQOZwpVEaDAr341tbn15RS4fCAsIst0qp7i8ex1o=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
diff --git a/cmd/opampsupervisor/supervisor/supervisor.go b/cmd/opampsupervisor/supervisor/supervisor.go
index 626f61ac3de1..3e8355040c4d 100644
--- a/cmd/opampsupervisor/supervisor/supervisor.go
+++ b/cmd/opampsupervisor/supervisor/supervisor.go
@@ -257,7 +257,7 @@ func (s *Supervisor) startOpAMP() error {
return err
}
- err = s.opampClient.SetHealth(&protobufs.AgentHealth{Healthy: false})
+ err = s.opampClient.SetHealth(&protobufs.ComponentHealth{Healthy: false})
if err != nil {
return err
}
@@ -519,7 +519,7 @@ func (s *Supervisor) startAgent() {
err := s.commander.Start(context.Background())
if err != nil {
s.logger.Error("Cannot start the agent", zap.Error(err))
- err = s.opampClient.SetHealth(&protobufs.AgentHealth{Healthy: false, LastError: fmt.Sprintf("Cannot start the agent: %v", err)})
+ err = s.opampClient.SetHealth(&protobufs.ComponentHealth{Healthy: false, LastError: fmt.Sprintf("Cannot start the agent: %v", err)})
if err != nil {
s.logger.Error("Failed to report OpAMP client health", zap.Error(err))
@@ -563,7 +563,7 @@ func (s *Supervisor) healthCheck() {
}
// Prepare OpAMP health report.
- health := &protobufs.AgentHealth{
+ health := &protobufs.ComponentHealth{
StartTimeUnixNano: uint64(s.startedAt.UnixNano()),
}
@@ -617,7 +617,7 @@ func (s *Supervisor) runAgentProcess() {
"Agent process PID=%d exited unexpectedly, exit code=%d. Will restart in a bit...",
s.commander.Pid(), s.commander.ExitCode(),
)
- err := s.opampClient.SetHealth(&protobufs.AgentHealth{Healthy: false, LastError: errMsg})
+ err := s.opampClient.SetHealth(&protobufs.ComponentHealth{Healthy: false, LastError: errMsg})
if err != nil {
s.logger.Error("Could not report health to OpAMP server", zap.Error(err))
@@ -678,7 +678,7 @@ func (s *Supervisor) Shutdown() {
if s.opampClient != nil {
err := s.opampClient.SetHealth(
- &protobufs.AgentHealth{
+ &protobufs.ComponentHealth{
Healthy: false, LastError: "Supervisor is shutdown",
},
)
diff --git a/extension/opampextension/go.mod b/extension/opampextension/go.mod
index 21c22618aad3..8669e3c5a20d 100644
--- a/extension/opampextension/go.mod
+++ b/extension/opampextension/go.mod
@@ -5,7 +5,7 @@ go 1.20
require (
github.com/google/uuid v1.4.0
github.com/oklog/ulid/v2 v2.1.0
- github.com/open-telemetry/opamp-go v0.9.0
+ github.com/open-telemetry/opamp-go v0.10.0
github.com/stretchr/testify v1.8.4
go.opentelemetry.io/collector/component v0.89.1-0.20231127181443-575c5f5e2531
go.opentelemetry.io/collector/config/configopaque v0.89.1-0.20231127181443-575c5f5e2531
diff --git a/extension/opampextension/go.sum b/extension/opampextension/go.sum
index 182747c7da2c..8a8279539274 100644
--- a/extension/opampextension/go.sum
+++ b/extension/opampextension/go.sum
@@ -201,8 +201,8 @@ github.com/npillmayer/nestext v0.1.3/go.mod h1:h2lrijH8jpicr25dFY+oAJLyzlya6jhnu
github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQA=
github.com/oklog/ulid/v2 v2.1.0 h1:+9lhoxAP56we25tyYETBBY1YLA2SaoLvUFgrP2miPJU=
github.com/oklog/ulid/v2 v2.1.0/go.mod h1:rcEKHmBBKfef9DhnvX7y1HZBYxjXb0cP5ExxNsTT1QQ=
-github.com/open-telemetry/opamp-go v0.9.0 h1:S6Mwn8uxYjcttE6ZJ6AXoiOuryU67zjKysz3xRfYL9k=
-github.com/open-telemetry/opamp-go v0.9.0/go.mod h1:Pfmm5EdWqZCG0dZAJjAinlra3yEpqK5StCblxpbEp6Q=
+github.com/open-telemetry/opamp-go v0.10.0 h1:3PdhoKcKY1lPrfdXnsxeLlXluE+Xe1Uc/CpJ4I8uUJ0=
+github.com/open-telemetry/opamp-go v0.10.0/go.mod h1:Pfmm5EdWqZCG0dZAJjAinlra3yEpqK5StCblxpbEp6Q=
github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc=
github.com/pascaldekloe/goe v0.1.0/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc=
github.com/pborman/getopt v0.0.0-20170112200414-7148bc3a4c30/go.mod h1:85jBQOZwpVEaDAr341tbn15RS4fCAsIst0qp7i8ex1o=