-
Notifications
You must be signed in to change notification settings - Fork 74
Draft - AzureMonitor heartbeat fix #1991
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Draft - AzureMonitor heartbeat fix #1991
Conversation
| if std::env::var("ARM_RESOURCE_ID").is_ok() { | ||
| "Azure".to_string() | ||
| } else { | ||
| "Non-Azure".to_string() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is "Edge" a better term? Or "Arc-Connected-Azure" if we can reliably determine that.
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #1991 +/- ##
==========================================
- Coverage 85.78% 85.78% -0.01%
==========================================
Files 513 513
Lines 163122 163152 +30
==========================================
+ Hits 139941 139954 +13
- Misses 22647 22664 +17
Partials 534 534
🚀 New features to boost your workflow:
|
| pub async fn send(&mut self) -> Result<(), Error> { | ||
| self.heartbeat_row.time = Utc::now().to_rfc3339(); | ||
| let payload = serde_json::json!([self.heartbeat_row]); | ||
| // println!("Sending heartbeat payload: {}", payload); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove debug code?
| heartbeat_row: HeartbeatRow { | ||
| time: Utc::now().to_rfc3339(), | ||
| version: default_heartbeat_version(), | ||
| category: "Direct Agent".to_string(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Extract category into a variable for consistency?
|
Not for merge. Opened a draft to share my ideas with @gouslu who will incorporate changes where it makes sense. (It was easy for me explain what I had in my mind via a PR :)) |
Change Summary
What issue does this PR close?
How are these changes tested?
Are there any user-facing changes?