-
Notifications
You must be signed in to change notification settings - Fork 209
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: opamp persist health message (#1398)
- Loading branch information
Showing
12 changed files
with
134 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package common | ||
|
||
type AgentHealthStatus string | ||
|
||
const ( | ||
// AgentHealthStatusHealthy represents the healthy status of an agent | ||
// It started the OpenTelemetry SDK with no errors, processed any configuration and is ready to receive data. | ||
AgentHealthStatusHealthy AgentHealthStatus = "Healthy" | ||
|
||
// AgentHealthStatusStarting represents that the agent is starting and there is still no health status available. | ||
// Once the agent finishes starting, it should report an either healthy or unhealthy status depending on the result. | ||
AgentHealthStatusStarting AgentHealthStatus = "Starting" | ||
|
||
// AgentHealthStatusUnsupportedRuntimeVersion represents that the agent is running on an unsupported runtime version | ||
// For example: Otel sdk supports node.js >= 14 and workload is running with node.js 12 | ||
AgentHealthStatusUnsupportedRuntimeVersion = "UnsupportedRuntimeVersion" | ||
|
||
// AgentHealthStatusNoHeartbeat is when the server did not receive a 3 heartbeats from the agent, thus it is considered unhealthy | ||
AgentHealthStatusNoHeartbeat = "NoHeartbeat" | ||
|
||
// AgentHealthStatusProcessTerminated is when the agent process is terminated. | ||
// The termination can be due to normal shutdown (e.g. event loop run out of work) | ||
// due to explicit termination (e.g. code calls exit(), or OS signal), or due to an error (e.g. unhandled exception) | ||
AgentHealthProcessTerminated = "ProcessTerminated" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.